Index: tools/telemetry/telemetry/core/platform/android_platform_backend.py |
diff --git a/tools/telemetry/telemetry/core/platform/android_platform_backend.py b/tools/telemetry/telemetry/core/platform/android_platform_backend.py |
index f2b83b5e4fa32c8bb616614d3e378f82c227987a..d880f3bd5415b2c183fe9287104c91564301290a 100644 |
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend.py |
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend.py |
@@ -101,6 +101,7 @@ class AndroidPlatformBackend(platform_backend.PlatformBackend): |
return proc_util.GetTimestampJiffies(timer_list) |
def GetMemoryStats(self, pid): |
+ self._adb.PurgeUnpinnedAshmem() |
memory_usage = self._adb.GetMemoryUsageForPid(pid)[0] |
return {'ProportionalSetSize': memory_usage['Pss'] * 1024, |
'SharedDirty': memory_usage['Shared_Dirty'] * 1024, |