Loading services/core/java/com/android/server/am/ActivityManagerService.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -13597,7 +13597,9 @@ public class ActivityManagerService extends IActivityManager.Stub pw.print(" unmapped + "); pw.print(" unmapped + "); pw.print(stringifyKBSize(ionPool)); pw.print(stringifyKBSize(ionPool)); pw.println(" pools)"); 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) final long lostRAM = memInfo.getTotalSizeKb() - (totalPss - totalSwapPss) - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb() - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb() Loading Loading @@ -14403,7 +14405,9 @@ public class ActivityManagerService extends IActivityManager.Stub memInfoBuilder.append(" ION: "); memInfoBuilder.append(" ION: "); memInfoBuilder.append(stringifyKBSize(ionHeap + ionPool)); memInfoBuilder.append(stringifyKBSize(ionHeap + ionPool)); memInfoBuilder.append("\n"); 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(" Used RAM: "); memInfoBuilder.append(stringifyKBSize( memInfoBuilder.append(stringifyKBSize( Loading
services/core/java/com/android/server/am/ActivityManagerService.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -13597,7 +13597,9 @@ public class ActivityManagerService extends IActivityManager.Stub pw.print(" unmapped + "); pw.print(" unmapped + "); pw.print(stringifyKBSize(ionPool)); pw.print(stringifyKBSize(ionPool)); pw.println(" pools)"); 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) final long lostRAM = memInfo.getTotalSizeKb() - (totalPss - totalSwapPss) - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb() - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb() Loading Loading @@ -14403,7 +14405,9 @@ public class ActivityManagerService extends IActivityManager.Stub memInfoBuilder.append(" ION: "); memInfoBuilder.append(" ION: "); memInfoBuilder.append(stringifyKBSize(ionHeap + ionPool)); memInfoBuilder.append(stringifyKBSize(ionHeap + ionPool)); memInfoBuilder.append("\n"); 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(" Used RAM: "); memInfoBuilder.append(stringifyKBSize( memInfoBuilder.append(stringifyKBSize(