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

Unified Diff: tools/perf/benchmarks/speedometer.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: Move GetEncryptionPassword so that it gets compiled on iOS. Created 5 years, 11 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 | « crypto/mock_apple_keychain.cc ('k') | tools/perf/measurements/page_cycler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/speedometer.py
diff --git a/tools/perf/benchmarks/speedometer.py b/tools/perf/benchmarks/speedometer.py
index edcc2f1ec0fe2da357e9f477e7e92110466512ce..b530998457f87c9ffe483ddaab367248d787b57f 100644
--- a/tools/perf/benchmarks/speedometer.py
+++ b/tools/perf/benchmarks/speedometer.py
@@ -18,6 +18,7 @@ engine, CSS style resolution, layout, and other technologies.
import os
+from metrics import keychain_metric
from telemetry import benchmark
from telemetry import page as page_module
from telemetry.page import page_set
@@ -40,6 +41,9 @@ class SpeedometerMeasurement(page_test.PageTest):
super(SpeedometerMeasurement, self).__init__(
action_name_to_run='RunPageInteractions')
+ def CustomizeBrowserOptions(self, options):
+ keychain_metric.KeychainMetric.CustomizeBrowserOptions(options)
+
def ValidateAndMeasurePage(self, page, tab, results):
tab.WaitForDocumentReadyStateToBeComplete()
iterationCount = 10
@@ -76,6 +80,7 @@ class SpeedometerMeasurement(page_test.PageTest):
};
suite_times;
""" % suite_name), important=False))
+ keychain_metric.KeychainMetric().AddResults(tab, results)
class Speedometer(benchmark.Benchmark):
test = SpeedometerMeasurement
« no previous file with comments | « crypto/mock_apple_keychain.cc ('k') | tools/perf/measurements/page_cycler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698