telemetry: Fix killing the perf profiler
commite5c729f794a24ba5195f8e56bd90a8b179097bdb
authorskyostil <skyostil@chromium.org>
Mon, 27 Jul 2015 17:36:38 +0000 (27 10:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jul 2015 17:37:30 +0000 (27 17:37 +0000)
treed523feceb4c5b51fb06e59f8e6411d255312a7a3
parent477fc5da75c691f991eace64ad8877d7cef8aa95
telemetry: Fix killing the perf profiler

Telemetry was failing to kill the perf profiler on Android because
pylib's KillAll command didn't account for multiple instances of the
same binary being running. The KillAll function would randomly kill one
of the running instances and then time out waiting for the instances to
go away.

This patch changes pylib's KillAll helper send the signal to all running
instances instead of just one. To do that we need to extend the GetPids
function to return all running instances of a binary instead of just one.

BUG=512564

Review URL: https://codereview.chromium.org/1254843002

Cr-Commit-Position: refs/heads/master@{#340496}
build/android/pylib/device/device_utils.py
build/android/pylib/device/device_utils_test.py
build/android/pylib/monkey/test_runner.py
tools/telemetry/telemetry/internal/backends/android_browser_backend_settings.py
tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py
tools/telemetry/telemetry/internal/platform/profiler/perf_profiler.py
tools/telemetry/telemetry/internal/platform/profiler/tcpdump_profiler.py