Index: tools/telemetry/telemetry/core/platform/profiler/oomkiller_profiler.py |
diff --git a/tools/telemetry/telemetry/core/platform/profiler/oomkiller_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/oomkiller_profiler.py |
index 634dfb29305af29b40190e2d8f22cf85949d5218..64cf6e3b75f9b297a6554fe386c99796aff2c957 100644 |
--- a/tools/telemetry/telemetry/core/platform/profiler/oomkiller_profiler.py |
+++ b/tools/telemetry/telemetry/core/platform/profiler/oomkiller_profiler.py |
@@ -36,7 +36,9 @@ class OOMKillerProfiler(profiler.Profiler): |
os.path.join('apks', 'MemConsumer.apk'), 'android') |
assert mem_consumer_path, ('Could not find memconsumer app. Please build ' |
'memconsumer target.') |
- self._browser_backend.adb.Install(mem_consumer_path) |
+ if not self._platform_backend.CanLaunchApplication( |
+ 'org.chromium.memconsumerg'): |
+ self._platform_backend.InstallApplication(mem_consumer_path) |
self._browser_backend.adb.device().GoHome() |
self._platform_backend.LaunchApplication( |
'org.chromium.memconsumer/.MemConsumer', |