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

Unified Diff: tools/telemetry/telemetry/core/platform/__init__.py

Issue 178363005: [Telemetry] Measure power in tab_switching measurement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright year Created 6 years, 10 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: tools/telemetry/telemetry/core/platform/__init__.py
diff --git a/tools/telemetry/telemetry/core/platform/__init__.py b/tools/telemetry/telemetry/core/platform/__init__.py
index 79291c2b1cc9fdacfa0f63a218b31f2fe54cc7e8..4bdd008ae2e7693a84dec7b753702931ff2d7db2 100644
--- a/tools/telemetry/telemetry/core/platform/__init__.py
+++ b/tools/telemetry/telemetry/core/platform/__init__.py
@@ -161,35 +161,6 @@ class Platform(object):
for t in self._platform_backend.StopVideoCapture():
yield t
- def CanMonitorPowerSync(self):
tonyg 2014/02/27 06:42:17 Let's move this to a separate CL and hold off on l
jeremy 2014/02/27 13:41:12 Done.
- """Returns True iff power can be monitored synchronously via
- MonitorPowerSync().
- """
- return self._platform_backend.CanMonitorPowerSync()
-
- def MonitorPowerSync(self, duration_ms):
- """Synchronously monitors power for |duration_ms|.
-
- Returns:
- A dict of power utilization statistics containing: {
- # The instantaneous power (voltage * current) reading in milliwatts at
- # each sample.
- 'power_samples_mw': [mw0, mw1, ..., mwN],
-
- # The total energy consumption during the sampling period in milliwatt
- # hours. May be estimated by integrating power samples or may be exact
- # on supported hardware.
- 'energy_consumption_mwh': mwh,
-
- # A platform-specific dictionary of additional details about the
- # utilization of individual hardware components.
- hw_component_utilization: {
- ...
- }
- }
- """
- return self._platform_backend.MonitorPowerSync(duration_ms)
-
def CanMonitorPowerAsync(self):
"""Returns True iff power can be monitored asynchronously via
StartMonitoringPowerAsync() and StopMonitoringPowerAsync().

Powered by Google App Engine
This is Rietveld 408576698