Bug 625612 - Add prominent startup info to development builds [r=wesj]
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -510,16 +510,26 @@ var BrowserUI = {
NewTabPopup.init();
#ifdef MOZ_UPDATER
// Check for updates in progress
let updatePrompt = Cc["@mozilla.org/updates/update-prompt;1"].createInstance(Ci.nsIUpdatePrompt);
updatePrompt.checkForUpdates();
#endif
}, false);
+
+#ifndef MOZ_OFFICIAL_BRANDING
+ setTimeout(function() {
+ let startup = Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup_MOZILLA_2_0).getStartupInfo();
+ for (let name in startup) {
+ if (name != "process")
+ Services.console.logStringMessage("[timing] " + name + ": " + (startup[name] - startup.process) + "ms");
+ }
+ }, 3000);
+#endif
},
uninit: function() {
ExtensionsView.uninit();
ConsoleView.uninit();
},
update: function(aState) {