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
F19684201: D21733.diff
Mon, Feb 9, 3:12 AM
F19643727: D21733.id51792.diff
Thu, Feb 5, 9:44 PM
F19577525: D21733.id51791.diff
Sun, Feb 1, 10:44 AM
F19533569: D21733.diff
Jan 20 2026, 6:47 PM
F19438007: D21733.id51792.diff
Dec 28 2025, 4:46 PM
F19424638: D21733.id51793.diff
Dec 28 2025, 2:15 AM
F19383868: D21733.id51791.diff
Dec 27 2025, 1:28 AM
F19316164: D21733.id.diff
Dec 25 2025, 4:19 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.