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

Unified Diff: chrome/browser/resources/md_bookmarks/app.js

Issue 2910903002: MD Bookmarks: Add a metric to measure load-time performance (Closed)
Patch Set: Reuse metric Created 3 years, 7 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 | « no previous file | extensions/common/api/_api_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/app.js
diff --git a/chrome/browser/resources/md_bookmarks/app.js b/chrome/browser/resources/md_bookmarks/app.js
index 7bc97e96699538742d8f955398107c7c102ce268..50c783cd7083c13d01d920ba92ed096dcd117853 100644
--- a/chrome/browser/resources/md_bookmarks/app.js
+++ b/chrome/browser/resources/md_bookmarks/app.js
@@ -57,6 +57,12 @@ Polymer({
bookmarks.Store.getInstance().init(initialState);
bookmarks.ApiListener.init();
+ setTimeout(function() {
+ chrome.metricsPrivate.recordTime(
+ 'BookmarkManager.ResultsRenderedTime',
+ Math.floor(window.performance.now()));
+ });
+
}.bind(this));
this.boundUpdateSidebarWidth_ = this.updateSidebarWidth_.bind(this);
« no previous file with comments | « no previous file | extensions/common/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698