Page MenuHomePhabricator

Provide an API for parsing swap information from "/proc/meminfo"
ClosedPublic

Authored by epriestley on Nov 22 2021, 1:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Aug 17 2026, 6:01 AM
Unknown Object (File)
Aug 13 2026, 5:16 AM
Unknown Object (File)
Aug 12 2026, 1:42 PM
Unknown Object (File)
Aug 12 2026, 1:42 PM
Unknown Object (File)
Aug 11 2026, 11:36 AM
Unknown Object (File)
Aug 11 2026, 11:36 AM
Unknown Object (File)
Aug 9 2026, 4:39 PM
Unknown Object (File)
Aug 9 2026, 4:32 PM
Subscribers
None

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Satisfy lint by catching and re-throwing Throwable.

It would be slightly more appropriate for this class to throw a more tailored exception, but I don't think there's a suitable existing exception and this already feels very heavy for its actual use case.

This overlaps somewhat with PhutilSystem::getSystemMemoryInformation(), but that mechanism is narrower and also doesn't really work in practice, so it would probably be reasonable to remove it entirely.