diff options
author | Patrice Arruda <patricearruda@google.com> | 2020-12-16 11:21:37 -0800 |
---|---|---|
committer | Patrice Arruda <patricearruda@google.com> | 2020-12-17 14:52:14 -0800 |
commit | 04157e186fc0d2a62d014d30db383f2e70d4571b (patch) | |
tree | f914ecaad2d6aea906b0ac287de8f2e9d585a7e7 /java/java_test.go | |
parent | bb42c44e716b8e22f13248c10d88aad466f0e8de (diff) |
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
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions