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

Commit 18849128 authored by Zhongcui Peng's avatar Zhongcui Peng
Browse files

[BugFix][MEM]Fix process memory data during dump

Assign hasSwapPss to true as long as there is a process with swap pss

Change-Id: Ia72167177c8721941df13dbd46cace3d92406fe6
BUG:314245234
parent baa658bc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -11826,7 +11826,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                        continue;
                    }
                    endTime = SystemClock.currentThreadTimeMillis();
                    hasSwapPss = mi.hasSwappedOutPss;
                    hasSwapPss = hasSwapPss || mi.hasSwappedOutPss;
                    memtrackGraphics = mi.getOtherPrivate(Debug.MemoryInfo.OTHER_GRAPHICS);
                    memtrackGl = mi.getOtherPrivate(Debug.MemoryInfo.OTHER_GL);
                } else {
@@ -12472,7 +12472,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                    continue;
                }
                endTime = SystemClock.currentThreadTimeMillis();
                hasSwapPss = mi.hasSwappedOutPss;
                hasSwapPss = hasSwapPss || mi.hasSwappedOutPss;
            } else {
                reportType = ProcessStats.ADD_PSS_EXTERNAL;
                startTime = SystemClock.currentThreadTimeMillis();