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

Unified Diff: tools/perf/measurements/repaint.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/repaint.py
diff --git a/tools/perf/measurements/repaint.py b/tools/perf/measurements/repaint.py
index a56ccb84051cc2514a45096f1112b828b3949cd4..b9298413759cd2c40c0ed8c015f18428de0a2dd9 100644
--- a/tools/perf/measurements/repaint.py
+++ b/tools/perf/measurements/repaint.py
@@ -2,11 +2,12 @@
# 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 measurements import smoothness_controller
from telemetry.page import page_test
-class Repaint(page_test.PageTest):
+class Repaint(PageTestMeasurement):
def __init__(self):
super(Repaint, self).__init__('RunRepaint', False)
self._smoothness_controller = None
@@ -26,6 +27,7 @@ class Repaint(page_test.PageTest):
help='Height of invalidations for fixed_size mode.')
def CustomizeBrowserOptions(self, options):
+ super(Repaint, self).CustomizeBrowserOptions(options)
options.AppendExtraBrowserArgs([
'--enable-impl-side-painting',
'--enable-threaded-compositing',
@@ -76,6 +78,7 @@ class Repaint(page_test.PageTest):
self._smoothness_controller.Stop(tab)
def ValidateAndMeasurePage(self, page, tab, results):
+ super(Repaint, self).ValidateAndMeasurePage(page, tab, results)
self._smoothness_controller.AddResults(tab, results)
def CleanUpAfterPage(self, _, tab):

Powered by Google App Engine
This is Rietveld 408576698