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

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

Issue 714273004: mac: Expose keychain access frequency to Telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mock_keychain_sleep
Patch Set: Add a common subclass to measurements. Created 6 years, 1 month 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/dromaeo.py
diff --git a/tools/perf/benchmarks/dromaeo.py b/tools/perf/benchmarks/dromaeo.py
index 326a1b0d74f93d85bf79856c5e201a7be1375dd0..324b7029e6e41812ac4b9c02e56e34a700d192ca 100644
--- a/tools/perf/benchmarks/dromaeo.py
+++ b/tools/perf/benchmarks/dromaeo.py
@@ -5,19 +5,20 @@
import math
import os
+from measurements import PageTestMeasurement
from metrics import power
from telemetry import benchmark
from telemetry.page import page_set
-from telemetry.page import page_test
from telemetry.value import scalar
-class _DromaeoMeasurement(page_test.PageTest):
+class _DromaeoMeasurement(PageTestMeasurement):
def __init__(self):
super(_DromaeoMeasurement, self).__init__()
self._power_metric = None
def CustomizeBrowserOptions(self, options):
+ super(_DromaeoMeasurement, self).CustomizeBrowserOptions(options)
power.PowerMetric.CustomizeBrowserOptions(options)
def WillStartBrowser(self, platform):
@@ -92,6 +93,9 @@ class _DromaeoMeasurement(page_test.PageTest):
for key, value in aggregated.iteritems():
AddResult(key, math.exp(value['sum'] / value['count']))
+ super(_DromaeoMeasurement, self).ValidateAndMeasurePage(
+ page, tab, results)
+
class _DromaeoBenchmark(benchmark.Benchmark):
"""A base class for Dromaeo benchmarks."""
test = _DromaeoMeasurement

Powered by Google App Engine
This is Rietveld 408576698