Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bc55e00c authored by guolun Xue's avatar guolun Xue
Browse files

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: default avatar <xueguolun@xiaomi.corp-partner.google.com>
Change-Id: I7dbb4d00a08e6d93ee77768740f2acab5a58a9ea
parent fa892b02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment