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
F18220548: D21733.diff
Tue, Aug 19, 3:08 PM
F18219112: D21733.id51792.diff
Tue, Aug 19, 10:59 AM
F18219108: D21733.id51793.diff
Tue, Aug 19, 10:58 AM
F18219103: D21733.id51791.diff
Tue, Aug 19, 10:57 AM
F18106611: D21733.id.diff
Sun, Aug 10, 11:10 PM
F17953133: D21733.id51792.diff
Fri, Aug 1, 2:47 AM
Unknown Object (File)
Jun 18 2025, 9:49 PM
Unknown Object (File)
Jun 16 2025, 11:08 AM
Subscribers
None

Diff Detail

Repository
rARC Arcanist
Branch
mem1
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningsrc/filesystem/memory/__tests__/ArcanistHostMemorySnapshotTestCase.php:28XHP132Partial Catch
Unit
Tests Passed
Build Status
Buildable 25585
Build 35391: Run Core Tests
Build 35390: 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.