diff --git a/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java b/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java index f6a93591591de..49f759d90372c 100644 --- a/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java +++ b/services/core/java/com/android/server/stats/pull/StatsPullAtomService.java @@ -2392,7 +2392,8 @@ public class StatsPullAtomService extends SystemService { metrics.unaccountedKb, metrics.gpuTotalUsageKb, metrics.gpuPrivateAllocationsKb, - metrics.dmaBufTotalExportedKb)); + metrics.dmaBufTotalExportedKb, + metrics.shmemKb)); return StatsManager.PULL_SUCCESS; } diff --git a/services/core/java/com/android/server/stats/pull/SystemMemoryUtil.java b/services/core/java/com/android/server/stats/pull/SystemMemoryUtil.java index 30b6e688bab65..9ebf59ef8363e 100644 --- a/services/core/java/com/android/server/stats/pull/SystemMemoryUtil.java +++ b/services/core/java/com/android/server/stats/pull/SystemMemoryUtil.java @@ -82,6 +82,7 @@ final class SystemMemoryUtil { result.vmallocUsedKb = (int) mInfos[Debug.MEMINFO_VM_ALLOC_USED]; result.pageTablesKb = (int) mInfos[Debug.MEMINFO_PAGE_TABLES]; result.kernelStackKb = (int) mInfos[Debug.MEMINFO_KERNEL_STACK]; + result.shmemKb = (int) mInfos[Debug.MEMINFO_SHMEM]; result.totalIonKb = totalIonKb; result.gpuTotalUsageKb = gpuTotalUsageKb; result.gpuPrivateAllocationsKb = gpuPrivateAllocationsKb; @@ -95,6 +96,7 @@ final class SystemMemoryUtil { public int vmallocUsedKb; public int pageTablesKb; public int kernelStackKb; + public int shmemKb; public int totalIonKb; public int gpuTotalUsageKb; public int gpuPrivateAllocationsKb;