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

Commit 6a611280 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix Lost RAM calculation by accounting for ION mapped heaps" am: 16d1603b

Change-Id: I235f6d1c2fd9ada98f1eebba69ed0db1251b52d1
parents eea3fa66 16d1603b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -12851,7 +12851,9 @@ public class ActivityManagerService extends IActivityManager.Stub
                        pw.print(" unmapped + ");
                        pw.print(stringifyKBSize(ionPool));
                        pw.println(" pools)");
                kernelUsed += ionUnmapped;
                // Note: mapped ION memory is not accounted in PSS due to VM_PFNMAP flag being
                // set on ION VMAs, therefore consider the entire ION heap as used kernel memory
                kernelUsed += ionHeap;
            }
            final long lostRAM = memInfo.getTotalSizeKb() - (totalPss - totalSwapPss)
                    - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb()
@@ -13588,7 +13590,9 @@ public class ActivityManagerService extends IActivityManager.Stub
            memInfoBuilder.append("       ION: ");
            memInfoBuilder.append(stringifyKBSize(ionHeap + ionPool));
            memInfoBuilder.append("\n");
            kernelUsed += ionUnmapped;
            // Note: mapped ION memory is not accounted in PSS due to VM_PFNMAP flag being
            // set on ION VMAs, therefore consider the entire ION heap as used kernel memory
            kernelUsed += ionHeap;
        }
        memInfoBuilder.append("  Used RAM: ");
        memInfoBuilder.append(stringifyKBSize(