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

Unified Diff: tools/perf/benchmarks/indexeddb_perf.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/dromaeo.py ('k') | tools/perf/benchmarks/kraken.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/indexeddb_perf.py
diff --git a/tools/perf/benchmarks/indexeddb_perf.py b/tools/perf/benchmarks/indexeddb_perf.py
index cad569b25cf08f245ddfa7f3668cac34fc2dbe2d..ec93f9a50e5e98448dbd0f590c05777669693970 100644
--- a/tools/perf/benchmarks/indexeddb_perf.py
+++ b/tools/perf/benchmarks/indexeddb_perf.py
@@ -38,9 +38,13 @@ class _IndexedDbMeasurement(page_measurement.PageMeasurement):
def __init__(self, *args, **kwargs):
super(_IndexedDbMeasurement, self).__init__(*args, **kwargs)
self._memory_metric = None
- self._power_metric = power.PowerMetric()
+ self._power_metric = None
self._v8_object_stats_metric = None
+ def WillStartBrowser(self, browser):
+ """Initialize metrics once right before the browser has been launched."""
+ self._power_metric = power.PowerMetric(browser)
+
def DidStartBrowser(self, browser):
"""Initialize metrics once right after the browser has been launched."""
self._memory_metric = memory.MemoryMetric(browser)
« no previous file with comments | « tools/perf/benchmarks/dromaeo.py ('k') | tools/perf/benchmarks/kraken.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698