Add total shmem to SystemMemory atom

Change-Id: I250c8f210c890fcd8ed6a6e067976575fe831004
Bug: 217894146
Test: build
This commit is contained in:
Ioannis Ilkos
2022-02-04 17:43:52 +00:00
parent 02e0ed6436
commit 5a45327a85
2 changed files with 4 additions and 1 deletions

View File

@@ -2411,7 +2411,8 @@ public class StatsPullAtomService extends SystemService {
metrics.unaccountedKb,
metrics.gpuTotalUsageKb,
metrics.gpuPrivateAllocationsKb,
metrics.dmaBufTotalExportedKb));
metrics.dmaBufTotalExportedKb,
metrics.shmemKb));
return StatsManager.PULL_SUCCESS;
}

View File

@@ -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;