Skip to content
Commit 786d5453 authored by Nandana Dutt's avatar Nandana Dutt
Browse files

Fix the lost RAM calculation

The formula used when reporting memory usage when device goes
low on memory should exclude SwapPss, which was incorrectly
being included as part of totalPss.

BUG: 109762356
Test: Manually tested on a gobo device by making it
go low on memory. Verified that the Lost RAM in adb logcat
was negative before, and is positive with the change,
and close to Lost RAM from "dumpsys meminfo".

Change-Id: Ic54181b55fa03d3faebda4c0516c95c18ee39e41
parent ce774071
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