summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Kevin Jeon <kevinjeon@google.com> 2023-08-25 15:23:21 -0400
committer Kevin Jeon <kevinjeon@google.com> 2023-09-15 20:46:15 -0400
commit7aa6d65722f142c8d813d84855d33bc75a7e85c3 (patch)
tree1642352757167c657c6e3a84ee76454b28846336 /api/api_test.go
parent71d19fb98cac5b0aeef49e5a5de210f146033701 (diff)
Add Debug.getRss()
This change adds the getRss() method, which will return RSS (as estimated by /proc/<pid>/status) and memtrack graphics, memtrack gl, and memtrack other. This is intended to be used a drop-in replacement for getPss() where efficiency is a higher priority than accuracy. Unlike getPss(), this method does not provide the option for collecting USS or SwapPss as these are not emitted in status. There are some formatting changes included here that were required for 'repo upload'. Test: Added method call in CTS's DebugTest; included unit test for backing ProcMemInfo::StatusRss method. Bug: 296454553 Change-Id: I20e7999dce46f6cdf01cb740ab9576937711dfef
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions