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

Unified Diff: telemetry/telemetry/internal/platform/power_monitor/powermetrics_power_monitor.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/power_monitor/powermetrics_power_monitor.py
diff --git a/telemetry/telemetry/internal/platform/power_monitor/powermetrics_power_monitor.py b/telemetry/telemetry/internal/platform/power_monitor/powermetrics_power_monitor.py
index 5795bf775b6e394907e685af1aa3b3556c2bdff5..89d141a2bd0d4786147ee6f3f2ada93a8ad2cf27 100644
--- a/telemetry/telemetry/internal/platform/power_monitor/powermetrics_power_monitor.py
+++ b/telemetry/telemetry/internal/platform/power_monitor/powermetrics_power_monitor.py
@@ -11,10 +11,11 @@ import tempfile
import xml.parsers.expat
from telemetry.core import os_version
-from telemetry.core import util
from telemetry import decorators
from telemetry.internal.platform import power_monitor
+import py_utils
+
# TODO: rename this class (seems like this is used by mac)
class PowerMetricsPowerMonitor(power_monitor.PowerMonitor):
@@ -52,7 +53,7 @@ class PowerMetricsPowerMonitor(power_monitor.PowerMonitor):
# synchronous in respect to powermetrics starting.
def _OutputFileExists():
return os.path.isfile(self._output_filename)
- util.WaitFor(_OutputFileExists, 1)
+ py_utils.WaitFor(_OutputFileExists, 1)
@decorators.Cache
def CanMonitorPower(self):

Powered by Google App Engine
This is Rietveld 408576698