commit | 8494b0704273dc7b803a3a7f7fcd05aca7bb23f0 | [log] [tgz] |
---|---|---|
author | Rafal Slawik <rslawik@google.com> | Wed Sep 12 13:04:30 2018 +0100 |
committer | Rafal Slawik <rslawik@google.com> | Wed Sep 26 09:25:01 2018 +0000 |
tree | 2ebc96a497f377d7e29f6975982851687e263498 | |
parent | 89ffeae759e0800fbcb2848641e781b20a518cf2 [diff] |
Read RSS high watermark The value is read from /proc/PID/status or memory.max_usage_in_bytes (for devices with per-app memcg enabled). Reading the value takes about 2ms per process. Full snapshot taken by statsd is around 300ms. Results: https://docs.google.com/spreadsheets/d/1vG9ku8Uu8104CmKbO4cNeEKVeeByvHY--p0_dK1GAdA/edit?usp=sharing Bug: 115477992 Test: atest FrameworksServicesTests Change-Id: I87995cbd85085375ade685f29e986ba173f9693e