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 d0ec854e32dc51968b566a2c9614021f33373f3a..235998f13a23705dec3c9ca063667aec97fdd433 100644 |
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend.py |
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend.py |
@@ -144,11 +144,11 @@ class AndroidPlatformBackend( |
if not android_prebuilt_profiler_helper.InstallOnDevice( |
self._device, 'purge_ashmem'): |
raise Exception('Error installing purge_ashmem.') |
- if self._device.old_interface.RunShellCommand( |
+ (status, output) = self._device.old_interface.GetAndroidToolStatusAndOutput( |
android_prebuilt_profiler_helper.GetDevicePath('purge_ashmem'), |
- log_result=True): |
- return |
- raise Exception('Error while purging ashmem.') |
+ log_result=True) |
+ if status != 0: |
+ raise Exception('Error while purging ashmem: ' + '\n'.join(output)) |
def GetMemoryStats(self, pid): |
memory_usage = self._device.old_interface.GetMemoryUsageForPid(pid)[0] |