| Index: telemetry/telemetry/internal/platform/profiler/sample_profiler.py
|
| diff --git a/telemetry/telemetry/internal/platform/profiler/sample_profiler.py b/telemetry/telemetry/internal/platform/profiler/sample_profiler.py
|
| index 63001b53b4ffd34367311f07c296c95920fdf8af..19559014888f7b2803d58f1d90fdafe89a7a4577 100644
|
| --- a/telemetry/telemetry/internal/platform/profiler/sample_profiler.py
|
| +++ b/telemetry/telemetry/internal/platform/profiler/sample_profiler.py
|
| @@ -8,9 +8,10 @@ import sys
|
| import tempfile
|
|
|
| from telemetry.core import exceptions
|
| -from telemetry.core import util
|
| from telemetry.internal.platform import profiler
|
|
|
| +import py_utils
|
| +
|
|
|
| class _SingleProcessSampleProfiler(object):
|
| """An internal class for using iprofiler for a given process."""
|
| @@ -27,7 +28,7 @@ class _SingleProcessSampleProfiler(object):
|
| 'Failed to start sample for process %s\n' %
|
| self._output_path.split('.')[1])
|
| return 'Sampling process' in stdout
|
| - util.WaitFor(IsStarted, 120)
|
| + py_utils.WaitFor(IsStarted, 120)
|
|
|
| def CollectProfile(self):
|
| self._proc.send_signal(signal.SIGINT)
|
|
|