summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorweihua.li <weihua.li@unisoc.com>2021-03-10 13:31:13 +0800
committerweihua.li <weihua.li@unisoc.com>2021-03-10 13:56:35 +0800
commitaf6f90bbf1c6155a1ff55a63c1e1138d345da8bb (patch)
tree6a7f99e6c6009463706c46f6ebec19a1d236fa28 /core
parenta8d51aac6643cabbcf725ebc59dfc2e021c7d16c (diff)
Fix worng value of 'TOTAL of Rss Total' when dumpsys meminfo
Use memInfo.getTotalRss instead of memInfo.getTotalPss to get the value of 'TOTAL of Rss Total'. bug 182328162 Signed-off-by: weihua.li <weihua.li@unisoc.com> Change-Id: I5487abe4870e10f4ee79c86c0ad0e75a3843deb1
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/ActivityThread.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index b99d5cd13a77..65f2c02faa85 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -2770,7 +2770,7 @@ public final class ActivityThread extends ClientTransactionHandler {
memInfo.getTotalPrivateDirty(),
memInfo.getTotalPrivateClean(),
memInfo.hasSwappedOutPss ? memInfo.getTotalSwappedOutPss() :
- memInfo.getTotalSwappedOut(), memInfo.getTotalPss(),
+ memInfo.getTotalSwappedOut(), memInfo.getTotalRss(),
nativeMax+dalvikMax,
nativeAllocated+dalvikAllocated, nativeFree+dalvikFree);
}