diff options
| author | 2024-01-08 03:44:09 +0000 | |
|---|---|---|
| committer | 2024-01-24 10:04:44 +0000 | |
| commit | bc55e00ced547dc0e95b3402aaef9f74b3327e0c (patch) | |
| tree | d71452f7a22faa431ddd8cfdd7221db46e8a1ee3 /api/api.go | |
| parent | fa892b02224909b242d492d87702d439f1f97ae1 (diff) | |
Add VmShmem calculate for getRss
In kernel, /proc/<pid>/status reporting calculates total_rss as:
total_rss = anon + file + shmem
Currently Process.getRss() only returns value of total_rss, anon,
file and swap, without shmem. This patch adds shmem reporting in
getRss(), to provide all components of total_rss calculation.
Bug: 318788245
Signed-off-by: xueguolun@xiaomi.corp-partner.google.com
Change-Id: I7dbb4d00a08e6d93ee77768740f2acab5a58a9ea
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions