summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2015-11-17 17:59:49 -0800
committerGuang Zhu <guangzhu@google.com>2015-11-18 07:43:50 +0000
commit877c6c7742d60fae387e51a4257dd90010064a8a (patch)
tree5d10f87435c774ebd3b6749a29a871f0153b840f /services
parent14a826380d12f4a5c48c1f9fb97b3b24ebddf0c7 (diff)
downloadframeworks_base-877c6c7742d60fae387e51a4257dd90010064a8a.zip
frameworks_base-877c6c7742d60fae387e51a4257dd90010064a8a.tar.gz
frameworks_base-877c6c7742d60fae387e51a4257dd90010064a8a.tar.bz2
add lost RAM info to compact meminfo dump
Bug: 25756675 Change-Id: Ibfa37dac99268de8b482188eca9924c999e2b484
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index b4d2746..8ef8364 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -15075,6 +15075,10 @@ public final class ActivityManagerService extends ActivityManagerNative
pw.print(" Lost RAM: "); pw.print(memInfo.getTotalSizeKb()
- totalPss - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb()
- memInfo.getKernelUsedSizeKb()); pw.println(" kB");
+ } else {
+ pw.print("lostram,"); pw.println(memInfo.getTotalSizeKb()
+ - totalPss - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb()
+ - memInfo.getKernelUsedSizeKb());
}
if (!brief) {
if (memInfo.getZramTotalSizeKb() != 0) {