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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/tcpdump_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/tcpdump_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py
index 6ad22c4e664257c1c06746506e4eb3be2b9e1b40..6b62474aa09e3d111032614932f64a79a261cd5f 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/tcpdump_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 signal
import subprocess
@@ -44,7 +45,11 @@ class _TCPDumpProfilerAndroid(object):
self._proc.terminate()
host_dump = os.path.join(self._output_path,
os.path.basename(self._DEVICE_DUMP_FILE))
- self._adb.device().PullFile(self._DEVICE_DUMP_FILE, host_dump)
+ try:
+ self._adb.device().PullFile(self._DEVICE_DUMP_FILE, host_dump)
+ except:
+ logging.exception('New exception caused by DeviceUtils conversion')
+ raise
print 'TCP dump available at: %s ' % host_dump
print 'Use Wireshark to open it.'
return host_dump

Powered by Google App Engine
This is Rietveld 408576698