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

Unified Diff: tools/perf/measurements/polymer_load.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/polymer_load.py
diff --git a/tools/perf/measurements/polymer_load.py b/tools/perf/measurements/polymer_load.py
index a373a4fcccf962f586d55d55774e3fe5a7464fa1..85046a5c4c321d1b01a04a8c28a16022612b33b9 100644
--- a/tools/perf/measurements/polymer_load.py
+++ b/tools/perf/measurements/polymer_load.py
@@ -2,8 +2,8 @@
# 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 telemetry.page import page
-from telemetry.page import page_test
from telemetry.value import scalar
@@ -28,8 +28,10 @@ class PageForPolymerLoad(page.Page):
action_runner.WaitForJavaScriptCondition('window.__polymer_ready')
-class PolymerLoadMeasurement(page_test.PageTest):
+class PolymerLoadMeasurement(PageTestMeasurement):
def ValidateAndMeasurePage(self, _, tab, results):
+ super(PolymerLoadMeasurement, self).ValidateAndMeasurePage(
+ page, tab, results)
result = int(tab.EvaluateJavaScript('__polymer_ready_time'))
results.AddValue(scalar.ScalarValue(
results.current_page, 'Total', 'ms', result))

Powered by Google App Engine
This is Rietveld 408576698