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

Unified Diff: telemetry/telemetry/internal/platform/profiler/sample_profiler.py

Issue 2453073002: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor (Closed)
Patch Set: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor Created 4 years, 2 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: 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)
« no previous file with comments | « telemetry/telemetry/internal/platform/profiler/java_heap_profiler.py ('k') | telemetry/telemetry/internal/story_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698