| 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 825fc71a159f96a8c9d5cff027a9bcab4c7e25dc..c09add5cc00b94f80a026d17b98972a00a49933b 100644
|
| --- a/tools/telemetry/telemetry/core/platform/profiler/oomkiller_profiler.py
|
| +++ b/tools/telemetry/telemetry/core/platform/profiler/oomkiller_profiler.py
|
| @@ -2,6 +2,9 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import os
|
| +
|
| +from telemetry.core import util
|
| from telemetry.core.backends.chrome import android_browser_finder
|
| from telemetry.core.platform import profiler
|
|
|
| @@ -26,6 +29,12 @@ class OOMKillerProfiler(profiler.Profiler):
|
| browser_backend, platform_backend, output_path, state)
|
| if not 'mem_consumer_launched' in state:
|
| state['mem_consumer_launched'] = True
|
| + mem_consumer_path = util.FindSupportBinary(
|
| + os.path.join('apks', 'MemConsumer.apk'),
|
| + executable=False)
|
| + assert mem_consumer_path, ('Could not find memconsumer app. Please build '
|
| + 'memconsumer target.')
|
| + self._browser_backend.adb.Install(mem_consumer_path)
|
| self._browser_backend.adb.GoHome()
|
| self._platform_backend.LaunchApplication(
|
| 'org.chromium.memconsumer/.MemConsumer',
|
|
|