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

Unified Diff: tools/perf/measurements/image_decoding.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/measurements/image_decoding.py
diff --git a/tools/perf/measurements/image_decoding.py b/tools/perf/measurements/image_decoding.py
index f3608532e570cb7e8003f7efddeacd27a1be7f5d..015b87df28153c8f0f78c712f4456df26b47ab3d 100644
--- a/tools/perf/measurements/image_decoding.py
+++ b/tools/perf/measurements/image_decoding.py
@@ -2,21 +2,21 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from measurements import PageTestMeasurement
from metrics import power
-
from telemetry.core.platform import tracing_category_filter
from telemetry.core.platform import tracing_options
-from telemetry.page import page_test
from telemetry.timeline import model
from telemetry.value import scalar
-class ImageDecoding(page_test.PageTest):
+class ImageDecoding(PageTestMeasurement):
def __init__(self):
super(ImageDecoding, self).__init__()
self._power_metric = None
def CustomizeBrowserOptions(self, options):
+ super(ImageDecoding, self).CustomizeBrowserOptions(options)
options.AppendExtraBrowserArgs('--enable-gpu-benchmarking')
power.PowerMetric.CustomizeBrowserOptions(options)
@@ -62,6 +62,7 @@ class ImageDecoding(page_test.PageTest):
""")
def ValidateAndMeasurePage(self, page, tab, results):
+ super(ImageDecoding, self).ValidateAndMeasurePage(page, tab, results)
timeline_data = tab.browser.platform.tracing_controller.Stop()
timeline_model = model.TimelineModel(timeline_data)
self._power_metric.Stop(page, tab)

Powered by Google App Engine
This is Rietveld 408576698