platform_build_soong/ui/metrics/proc
Patrice Arruda 04157e186f Read the proc status file when PID is given for metrics purpose.
To measure the MaxRSS memory correctly, read the proc status file
under /proc/<pid>/status and extract the MaxRSS value from it. The
implementation is only available for Linux based distributions.

Bug: b/169453825
Test: go test
Change-Id: I32e3068fee7447f9ef5dfb5a8d8dcb6934e0af23
2020-12-17 14:52:14 -08:00
..
Android.bp Read the proc status file when PID is given for metrics purpose. 2020-12-17 14:52:14 -08:00
status.go Read the proc status file when PID is given for metrics purpose. 2020-12-17 14:52:14 -08:00
status_darwin.go Read the proc status file when PID is given for metrics purpose. 2020-12-17 14:52:14 -08:00
status_linux.go Read the proc status file when PID is given for metrics purpose. 2020-12-17 14:52:14 -08:00
status_linux_test.go Read the proc status file when PID is given for metrics purpose. 2020-12-17 14:52:14 -08:00