| Index: tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
|
| index 139cd3783b08aab1e6074ac0868cc51e10dd1b82..23396eb1cdffa8b66baf76e421e2ea1ec623208d 100644
|
| --- a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
|
| +++ b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
|
| @@ -100,10 +100,7 @@ class _SingleProcessPerfProfiler(object):
|
| '"--extra-browser-args=--single-process"')
|
| if self._is_android:
|
| device = self._browser_backend.adb.device()
|
| - perf_pids = device.old_interface.ExtractPid('perf')
|
| - device.RunShellCommand('kill -SIGINT ' + ' '.join(perf_pids))
|
| - util.WaitFor(lambda: not device.old_interface.ExtractPid('perf'),
|
| - timeout=2)
|
| + device.KillAll('perf', signum=signal.SIGINT, blocking=True)
|
| self._proc.send_signal(signal.SIGINT)
|
| exit_code = self._proc.wait()
|
| try:
|
|
|