diff --git a/b2g/installer/package-manifest.in b/b2g/installer/package-manifest.in index c826ac38c04..5905fd47bcd 100644 --- a/b2g/installer/package-manifest.in +++ b/b2g/installer/package-manifest.in @@ -324,9 +324,7 @@ @RESPATH@/components/toolkit_formautofill.xpt @RESPATH@/components/toolkit_osfile.xpt @RESPATH@/components/toolkit_securityreporter.xpt -#ifdef NIGHTLY_BUILD @RESPATH@/components/toolkit_perfmonitoring.xpt -#endif @RESPATH@/components/toolkit_xulstore.xpt @RESPATH@/components/toolkitprofile.xpt #ifdef MOZ_ENABLE_XREMOTE diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 8f8a3d7b8b2..d41f4d8be7d 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -61,6 +61,8 @@ XPCOMUtils.defineLazyServiceGetter(this, "gAboutNewTabService", XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() { return Services.strings.createBundle('chrome://browser/locale/browser.properties'); }); +XPCOMUtils.defineLazyModuleGetter(this, "AddonWatcher", + "resource://gre/modules/AddonWatcher.jsm"); const nsIWebNavigation = Ci.nsIWebNavigation; @@ -1348,6 +1350,9 @@ var gBrowserInit = { SocialUI.init(); + // Start monitoring slow add-ons + AddonWatcher.init(); + // Telemetry for master-password - we do this after 5 seconds as it // can cause IO if NSS/PSM has not already initialized. setTimeout(() => { diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js index 76a582eed4d..6e808995840 100644 --- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -543,7 +543,6 @@ BrowserGlue.prototype = { os.addObserver(this, "autocomplete-did-enter-text", false); if (AppConstants.NIGHTLY_BUILD) { - AddonWatcher.init(); os.addObserver(this, AddonWatcher.TOPIC_SLOW_ADDON_DETECTED, false); } diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in index 5287acdf504..b102e606b47 100644 --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in @@ -318,9 +318,7 @@ @RESPATH@/components/toolkit_formautofill.xpt @RESPATH@/components/toolkit_osfile.xpt @RESPATH@/components/toolkit_securityreporter.xpt -#ifdef NIGHTLY_BUILD @RESPATH@/components/toolkit_perfmonitoring.xpt -#endif @RESPATH@/components/toolkit_xulstore.xpt @RESPATH@/components/toolkitprofile.xpt #ifdef MOZ_ENABLE_XREMOTE diff --git a/docshell/base/nsAboutRedirector.cpp b/docshell/base/nsAboutRedirector.cpp index 25898d47056..7621cff5a07 100644 --- a/docshell/base/nsAboutRedirector.cpp +++ b/docshell/base/nsAboutRedirector.cpp @@ -95,12 +95,10 @@ static RedirEntry kRedirMap[] = { nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT }, -#ifdef NIGHTLY_BUILD { "performance", "chrome://global/content/aboutPerformance.xhtml", nsIAboutModule::ALLOW_SCRIPT }, -#endif { "plugins", "chrome://global/content/plugins.html", nsIAboutModule::URI_MUST_LOAD_IN_CHILD diff --git a/js/src/vm/Interpreter.cpp b/js/src/vm/Interpreter.cpp index a06b999a56e..3cce5fc611b 100644 --- a/js/src/vm/Interpreter.cpp +++ b/js/src/vm/Interpreter.cpp @@ -389,9 +389,9 @@ js::RunScript(JSContext* cx, RunState& state) { JS_CHECK_RECURSION(cx, return false); -#if defined(NIGHTLY_BUILD) && defined(MOZ_HAVE_RDTSC) +#if defined(MOZ_HAVE_RDTSC) js::AutoStopwatch stopwatch(cx); -#endif // defined(NIGHTLY_BUILD) && defined(MOZ_HAVE_RDTSC) +#endif // defined(MOZ_HAVE_RDTSC) SPSEntryMarker marker(cx->runtime(), state.script()); diff --git a/mobile/android/b2gdroid/installer/package-manifest.in b/mobile/android/b2gdroid/installer/package-manifest.in index 4a5960d066a..9de2ae2fecf 100644 --- a/mobile/android/b2gdroid/installer/package-manifest.in +++ b/mobile/android/b2gdroid/installer/package-manifest.in @@ -252,9 +252,7 @@ @BINPATH@/components/toolkit_formautofill.xpt @BINPATH@/components/toolkit_osfile.xpt @BINPATH@/components/toolkit_securityreporter.xpt -#ifdef NIGHTLY_BUILD @BINPATH@/components/toolkit_perfmonitoring.xpt -#endif @BINPATH@/components/toolkit_xulstore.xpt @BINPATH@/components/toolkitprofile.xpt #ifdef MOZ_ENABLE_XREMOTE diff --git a/mobile/android/installer/package-manifest.in b/mobile/android/installer/package-manifest.in index e43dbe70bfb..d0493c32b3a 100644 --- a/mobile/android/installer/package-manifest.in +++ b/mobile/android/installer/package-manifest.in @@ -1,3 +1,4 @@ + ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -228,9 +229,7 @@ @BINPATH@/components/toolkit_formautofill.xpt @BINPATH@/components/toolkit_osfile.xpt @BINPATH@/components/toolkit_securityreporter.xpt -#ifdef NIGHTLY_BUILD @BINPATH@/components/toolkit_perfmonitoring.xpt -#endif @BINPATH@/components/toolkit_xulstore.xpt @BINPATH@/components/toolkitprofile.xpt #ifdef MOZ_ENABLE_XREMOTE diff --git a/toolkit/components/moz.build b/toolkit/components/moz.build index 6923a8d0f60..c115ef8219c 100644 --- a/toolkit/components/moz.build +++ b/toolkit/components/moz.build @@ -12,6 +12,7 @@ DIRS += [ 'aboutcache', 'aboutcheckerboard', 'aboutmemory', + 'aboutperformance', 'addoncompat', 'alerts', 'apppicker', @@ -39,6 +40,7 @@ DIRS += [ 'parentalcontrols', 'passwordmgr', 'perf', + 'perfmonitoring', 'places', 'privatebrowsing', 'processsingleton', @@ -98,12 +100,6 @@ DIRS += ['captivedetect'] if CONFIG['MOZ_WIDGET_TOOLKIT'] != "gonk" and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android': DIRS += ['terminator'] -if CONFIG['NIGHTLY_BUILD']: # Bug 1136927 - Performance Monitoring is not ready for prime-time yet - DIRS += [ - 'aboutperformance', - 'perfmonitoring', - ] - DIRS += ['build'] if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':