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

Unified Diff: tools/perf/benchmarks/octane.py

Issue 350763005: [Telemetry] Power metric: subtract quiescent power draw from result (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/perf/benchmarks/octane.py
diff --git a/tools/perf/benchmarks/octane.py b/tools/perf/benchmarks/octane.py
index c53b63bce7adbd9b12ba93cf7ebbeded4d1494a8..7bcd4528a16445239814de34d0aff8174feb2fc1 100644
--- a/tools/perf/benchmarks/octane.py
+++ b/tools/perf/benchmarks/octane.py
@@ -25,11 +25,13 @@ _GB = 1024 * 1024 * 1024
class _OctaneMeasurement(page_measurement.PageMeasurement):
def __init__(self):
super(_OctaneMeasurement, self).__init__()
- self._power_metric = power.PowerMetric()
+ self._power_metric = None
def CustomizeBrowserOptions(self, options):
power.PowerMetric.CustomizeBrowserOptions(options)
+ def WillStartBrowser(self, browser):
+ self._power_metric = power.PowerMetric(browser)
def WillNavigateToPage(self, page, tab):
if tab.browser.memory_stats['SystemTotalPhysicalMemory'] < 1 * _GB:

Powered by Google App Engine
This is Rietveld 408576698