| Index: tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py
|
| index 87194063a4deeaa74ddc0d7287db8959958ea3e4..3fd7ab7a881b74ffb2d42f4df4579177ab7dff2f 100644
|
| --- a/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py
|
| +++ b/tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import logging
|
| import os
|
| import subprocess
|
| import threading
|
| @@ -48,8 +49,12 @@ class JavaHeapProfiler(profiler.Profiler):
|
| def CollectProfile(self):
|
| self._timer.cancel()
|
| self._DumpJavaHeap(True)
|
| - self._browser_backend.adb.device().PullFile(
|
| - self._DEFAULT_DEVICE_DIR, self._output_path)
|
| + try:
|
| + self._browser_backend.adb.device().PullFile(
|
| + self._DEFAULT_DEVICE_DIR, self._output_path)
|
| + except:
|
| + logging.exception('New exception caused by DeviceUtils conversion')
|
| + raise
|
| self._browser_backend.adb.RunShellCommand(
|
| 'rm ' + os.path.join(self._DEFAULT_DEVICE_DIR, '*'))
|
| output_files = []
|
|
|