| 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)
|
| except device_errors.CommandFailedError:
|
| logging.warning('The perf process could not be killed on the device.')
|
| self._proc.send_signal(signal.SIGINT)
|
|
|