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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/netlog_profiler.py

Issue 1165463010: [Android] Log exceptions thrown by newly converted DeviceUtils calls in telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/profiler/netlog_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/netlog_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/netlog_profiler.py
index aa0070a6b99febcc3bd1d92724acdde6808b155e..b63596ade52e3b6811358171a0a3622cd90541e1 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/netlog_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/netlog_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 tempfile
from telemetry.core.platform import profiler
@@ -36,7 +37,12 @@ class NetLogProfiler(profiler.Profiler):
# On Android pull the output file to the host.
if self._platform_backend.GetOSName() == 'android':
host_output_file = '%s.json' % self._output_path
- self._browser_backend.adb.device().PullFile(output_file, host_output_file)
+ try:
+ self._browser_backend.adb.device().PullFile(
+ output_file, host_output_file)
+ except:
+ logging.exception('New exception caused by DeviceUtils conversion')
+ raise
# Clean the device
self._browser_backend.adb.device().RunShellCommand('rm %s' % output_file)
output_file = host_output_file

Powered by Google App Engine
This is Rietveld 408576698