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

Unified Diff: chrome/browser/resources/new_new_tab.html

Issue 242107: Add histograms that track how long it takes to open the new tab page. (Closed)
Patch Set: comments Created 11 years, 3 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 | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/resources/new_new_tab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.html
diff --git a/chrome/browser/resources/new_new_tab.html b/chrome/browser/resources/new_new_tab.html
index f16df88798d4a7de1cdc22ef854c12dc94730f8f..08c452acd2596addc93f1ffd1b044304f6a1e536 100644
--- a/chrome/browser/resources/new_new_tab.html
+++ b/chrome/browser/resources/new_new_tab.html
@@ -13,9 +13,13 @@
<script>
// Logging info for benchmarking purposes.
var log = [];
-function logEvent(name) {
+function logEvent(name, shouldLogTime) {
+ if (shouldLogTime) {
+ chrome.send('logEventTime', [name]);
+ }
log.push([name, Date.now()]);
}
+logEvent('NewTab.ScriptStart', true);
var global = this;
@@ -50,8 +54,6 @@ registerCallback('recentlyClosedTabs');
registerCallback('syncMessageChanged');
registerCallback('tips');
-logEvent('log start');
-
</script>
<link rel="stylesheet" href="new_new_tab.css">
<script>
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/resources/new_new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698