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

Unified Diff: tools/perf/benchmarks/robohornet_pro.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
« no previous file with comments | « tools/perf/benchmarks/octane.py ('k') | tools/perf/benchmarks/sunspider.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/robohornet_pro.py
diff --git a/tools/perf/benchmarks/robohornet_pro.py b/tools/perf/benchmarks/robohornet_pro.py
index d532e6070909f095fede3b09a42d2726f7a89876..8bf531bf325ebef5dae75300fc199afffac63f28 100644
--- a/tools/perf/benchmarks/robohornet_pro.py
+++ b/tools/perf/benchmarks/robohornet_pro.py
@@ -15,11 +15,14 @@ from telemetry.page import page_set
class _RobohornetProMeasurement(page_measurement.PageMeasurement):
def __init__(self):
super(_RobohornetProMeasurement, 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 DidNavigateToPage(self, page, tab):
self._power_metric.Start(page, tab)
« no previous file with comments | « tools/perf/benchmarks/octane.py ('k') | tools/perf/benchmarks/sunspider.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698