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)
Tue, Apr 30, 12:39 PM
Unknown Object (File)
Fri, Apr 26, 9:43 AM
Unknown Object (File)
Thu, Apr 25, 2:23 AM
Unknown Object (File)
Sat, Apr 20, 5:48 PM
Unknown Object (File)
Thu, Apr 11, 9:44 AM
Unknown Object (File)
Sat, Apr 6, 11:47 AM
Unknown Object (File)
Mar 30 2024, 4:29 PM
Unknown Object (File)
Mar 28 2024, 3:30 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.