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
F14074123: D21733.diff
Thu, Nov 21, 4:13 AM
Unknown Object (File)
Sun, Nov 17, 12:07 PM
Unknown Object (File)
Wed, Nov 13, 5:56 AM
Unknown Object (File)
Sat, Nov 9, 4:49 PM
Unknown Object (File)
Thu, Nov 7, 11:31 AM
Unknown Object (File)
Mon, Oct 28, 9:52 PM
Unknown Object (File)
Thu, Oct 24, 7:21 AM
Unknown Object (File)
Thu, Oct 24, 7:20 AM
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.