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

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

Issue 350763005: [Telemetry] Power metric: subtract quiescent power draw from result (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 6 years, 6 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/power_monitor/__init__.py
diff --git a/tools/telemetry/telemetry/core/platform/power_monitor/__init__.py b/tools/telemetry/telemetry/core/platform/power_monitor/__init__.py
index 4d98e075d6057a56a331b01934d6437961f1ac22..7a13fa91d2b2de33e6024e89547bafc3ba7c6e15 100644
--- a/tools/telemetry/telemetry/core/platform/power_monitor/__init__.py
+++ b/tools/telemetry/telemetry/core/platform/power_monitor/__init__.py
@@ -16,6 +16,12 @@ class PowerMonitor(object):
"""
return False
+ def CanMeasurePerApplicationPower(self):
+ """Returns True if the power monitor can measure power for the target
+ application in isolation. False if power measurement is for full system
+ energy consumption."""
+ return False
+
def StartMonitoringPower(self, browser):
"""Starts monitoring power utilization statistics.

Powered by Google App Engine
This is Rietveld 408576698