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

Unified Diff: tools/telemetry/telemetry/internal/platform/profiler/perf_profiler.py

Issue 1254843002: telemetry: Fix killing the perf profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/internal/platform/profiler/perf_profiler.py
diff --git a/tools/telemetry/telemetry/internal/platform/profiler/perf_profiler.py b/tools/telemetry/telemetry/internal/platform/profiler/perf_profiler.py
index 03891400daf9687890287c5129507a195e9e63ff..8a699eb513a3d2f35f848d86b1ad67ec09e7ac4c 100644
--- a/tools/telemetry/telemetry/internal/platform/profiler/perf_profiler.py
+++ b/tools/telemetry/telemetry/internal/platform/profiler/perf_profiler.py
@@ -107,7 +107,8 @@ class _SingleProcessPerfProfiler(object):
device = self._browser_backend.device
try:
binary_name = os.path.basename(self._perf_binary)
- device.KillAll(binary_name, signum=signal.SIGINT, blocking=True)
+ if device.GetPids(binary_name):
+ device.KillAll(binary_name, signum=signal.SIGINT, blocking=True)
perezju 2015/07/24 14:03:10 you should be able to pass quiet=True here
Sami 2015/07/24 14:36:41 Yeah I thought about that but decided against it s
except device_errors.CommandFailedError:
logging.warning('The perf process could not be killed on the device.')
self._proc.send_signal(signal.SIGINT)
« build/android/pylib/device/device_utils.py ('K') | « build/android/pylib/device/device_utils_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698