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)
Mar 9 2026, 4:26 AM
Unknown Object (File)
Mar 7 2026, 5:58 PM
Unknown Object (File)
Mar 4 2026, 10:00 AM
Unknown Object (File)
Feb 9 2026, 3:12 AM
Unknown Object (File)
Feb 5 2026, 9:44 PM
Unknown Object (File)
Feb 1 2026, 10:44 AM
Unknown Object (File)
Jan 20 2026, 6:47 PM
Unknown Object (File)
Dec 28 2025, 4:46 PM
Subscribers
None

Diff Detail

Repository
rARC Arcanist
Branch
mem1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25586
Build 35393: Run Core Tests
Build 35392: arc lint + arc unit

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.