Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: tools/telemetry/telemetry/core/platform/android_platform_backend.py

Issue 287513002: [Android] Build android tools as PIE and add a wrapper for ICS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]
« tools/android/run_pie/run_pie.gyp ('K') | « tools/telemetry/telemetry/core/backends/adb_commands.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698