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

Unified Diff: tools/perf/measurements/tab_switching.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 | « tools/perf/measurements/startup.py ('k') | tools/perf/metrics/keychain_metric.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/tab_switching.py
diff --git a/tools/perf/measurements/tab_switching.py b/tools/perf/measurements/tab_switching.py
index 41290dc07de244e293b794f3c951467bfae2d0d0..bc79ca0860df1c9b2efc62ded2f1a565e9854d3d 100644
--- a/tools/perf/measurements/tab_switching.py
+++ b/tools/perf/measurements/tab_switching.py
@@ -12,6 +12,7 @@ Power usage is also measured.
import time
+from metrics import keychain_metric
from metrics import power
from telemetry.core import util
from telemetry.page import page_test
@@ -31,6 +32,8 @@ class TabSwitching(page_test.PageTest):
self._power_metric = None
def CustomizeBrowserOptions(self, options):
+ keychain_metric.KeychainMetric.CustomizeBrowserOptions(options)
+
options.AppendExtraBrowserArgs([
'--enable-stats-collection-bindings'
])
@@ -99,3 +102,5 @@ class TabSwitching(page_test.PageTest):
histogram.HistogramValue(None, display_name, 'ms',
raw_value_json=diff_histogram,
important=False))
+
+ keychain_metric.KeychainMetric().AddResults(tab, results)
« no previous file with comments | « tools/perf/measurements/startup.py ('k') | tools/perf/metrics/keychain_metric.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698