Bug 1243706 - Release PerformanceStats/PerformanceWatcher;r=Felipe

MozReview-Commit-ID: 4XT21bfBSa9
This commit is contained in:
David Rajchenbach-Teller 2016-01-28 13:41:14 +01:00
parent 18e3b35f95
commit d8b434d3d6
9 changed files with 10 additions and 19 deletions

View File

@ -324,9 +324,7 @@
@RESPATH@/components/toolkit_formautofill.xpt @RESPATH@/components/toolkit_formautofill.xpt
@RESPATH@/components/toolkit_osfile.xpt @RESPATH@/components/toolkit_osfile.xpt
@RESPATH@/components/toolkit_securityreporter.xpt @RESPATH@/components/toolkit_securityreporter.xpt
#ifdef NIGHTLY_BUILD
@RESPATH@/components/toolkit_perfmonitoring.xpt @RESPATH@/components/toolkit_perfmonitoring.xpt
#endif
@RESPATH@/components/toolkit_xulstore.xpt @RESPATH@/components/toolkit_xulstore.xpt
@RESPATH@/components/toolkitprofile.xpt @RESPATH@/components/toolkitprofile.xpt
#ifdef MOZ_ENABLE_XREMOTE #ifdef MOZ_ENABLE_XREMOTE

View File

@ -61,6 +61,8 @@ XPCOMUtils.defineLazyServiceGetter(this, "gAboutNewTabService",
XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() { XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() {
return Services.strings.createBundle('chrome://browser/locale/browser.properties'); return Services.strings.createBundle('chrome://browser/locale/browser.properties');
}); });
XPCOMUtils.defineLazyModuleGetter(this, "AddonWatcher",
"resource://gre/modules/AddonWatcher.jsm");
const nsIWebNavigation = Ci.nsIWebNavigation; const nsIWebNavigation = Ci.nsIWebNavigation;
@ -1348,6 +1350,9 @@ var gBrowserInit = {
SocialUI.init(); SocialUI.init();
// Start monitoring slow add-ons
AddonWatcher.init();
// Telemetry for master-password - we do this after 5 seconds as it // Telemetry for master-password - we do this after 5 seconds as it
// can cause IO if NSS/PSM has not already initialized. // can cause IO if NSS/PSM has not already initialized.
setTimeout(() => { setTimeout(() => {

View File

@ -543,7 +543,6 @@ BrowserGlue.prototype = {
os.addObserver(this, "autocomplete-did-enter-text", false); os.addObserver(this, "autocomplete-did-enter-text", false);
if (AppConstants.NIGHTLY_BUILD) { if (AppConstants.NIGHTLY_BUILD) {
AddonWatcher.init();
os.addObserver(this, AddonWatcher.TOPIC_SLOW_ADDON_DETECTED, false); os.addObserver(this, AddonWatcher.TOPIC_SLOW_ADDON_DETECTED, false);
} }

View File

@ -318,9 +318,7 @@
@RESPATH@/components/toolkit_formautofill.xpt @RESPATH@/components/toolkit_formautofill.xpt
@RESPATH@/components/toolkit_osfile.xpt @RESPATH@/components/toolkit_osfile.xpt
@RESPATH@/components/toolkit_securityreporter.xpt @RESPATH@/components/toolkit_securityreporter.xpt
#ifdef NIGHTLY_BUILD
@RESPATH@/components/toolkit_perfmonitoring.xpt @RESPATH@/components/toolkit_perfmonitoring.xpt
#endif
@RESPATH@/components/toolkit_xulstore.xpt @RESPATH@/components/toolkit_xulstore.xpt
@RESPATH@/components/toolkitprofile.xpt @RESPATH@/components/toolkitprofile.xpt
#ifdef MOZ_ENABLE_XREMOTE #ifdef MOZ_ENABLE_XREMOTE

View File

@ -95,12 +95,10 @@ static RedirEntry kRedirMap[] = {
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::ALLOW_SCRIPT |
nsIAboutModule::HIDE_FROM_ABOUTABOUT nsIAboutModule::HIDE_FROM_ABOUTABOUT
}, },
#ifdef NIGHTLY_BUILD
{ {
"performance", "chrome://global/content/aboutPerformance.xhtml", "performance", "chrome://global/content/aboutPerformance.xhtml",
nsIAboutModule::ALLOW_SCRIPT nsIAboutModule::ALLOW_SCRIPT
}, },
#endif
{ {
"plugins", "chrome://global/content/plugins.html", "plugins", "chrome://global/content/plugins.html",
nsIAboutModule::URI_MUST_LOAD_IN_CHILD nsIAboutModule::URI_MUST_LOAD_IN_CHILD

View File

@ -389,9 +389,9 @@ js::RunScript(JSContext* cx, RunState& state)
{ {
JS_CHECK_RECURSION(cx, return false); JS_CHECK_RECURSION(cx, return false);
#if defined(NIGHTLY_BUILD) && defined(MOZ_HAVE_RDTSC) #if defined(MOZ_HAVE_RDTSC)
js::AutoStopwatch stopwatch(cx); js::AutoStopwatch stopwatch(cx);
#endif // defined(NIGHTLY_BUILD) && defined(MOZ_HAVE_RDTSC) #endif // defined(MOZ_HAVE_RDTSC)
SPSEntryMarker marker(cx->runtime(), state.script()); SPSEntryMarker marker(cx->runtime(), state.script());

View File

@ -252,9 +252,7 @@
@BINPATH@/components/toolkit_formautofill.xpt @BINPATH@/components/toolkit_formautofill.xpt
@BINPATH@/components/toolkit_osfile.xpt @BINPATH@/components/toolkit_osfile.xpt
@BINPATH@/components/toolkit_securityreporter.xpt @BINPATH@/components/toolkit_securityreporter.xpt
#ifdef NIGHTLY_BUILD
@BINPATH@/components/toolkit_perfmonitoring.xpt @BINPATH@/components/toolkit_perfmonitoring.xpt
#endif
@BINPATH@/components/toolkit_xulstore.xpt @BINPATH@/components/toolkit_xulstore.xpt
@BINPATH@/components/toolkitprofile.xpt @BINPATH@/components/toolkitprofile.xpt
#ifdef MOZ_ENABLE_XREMOTE #ifdef MOZ_ENABLE_XREMOTE

View File

@ -1,3 +1,4 @@
; This Source Code Form is subject to the terms of the Mozilla Public ; 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 ; 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/. ; file, You can obtain one at http://mozilla.org/MPL/2.0/.
@ -228,9 +229,7 @@
@BINPATH@/components/toolkit_formautofill.xpt @BINPATH@/components/toolkit_formautofill.xpt
@BINPATH@/components/toolkit_osfile.xpt @BINPATH@/components/toolkit_osfile.xpt
@BINPATH@/components/toolkit_securityreporter.xpt @BINPATH@/components/toolkit_securityreporter.xpt
#ifdef NIGHTLY_BUILD
@BINPATH@/components/toolkit_perfmonitoring.xpt @BINPATH@/components/toolkit_perfmonitoring.xpt
#endif
@BINPATH@/components/toolkit_xulstore.xpt @BINPATH@/components/toolkit_xulstore.xpt
@BINPATH@/components/toolkitprofile.xpt @BINPATH@/components/toolkitprofile.xpt
#ifdef MOZ_ENABLE_XREMOTE #ifdef MOZ_ENABLE_XREMOTE

View File

@ -12,6 +12,7 @@ DIRS += [
'aboutcache', 'aboutcache',
'aboutcheckerboard', 'aboutcheckerboard',
'aboutmemory', 'aboutmemory',
'aboutperformance',
'addoncompat', 'addoncompat',
'alerts', 'alerts',
'apppicker', 'apppicker',
@ -39,6 +40,7 @@ DIRS += [
'parentalcontrols', 'parentalcontrols',
'passwordmgr', 'passwordmgr',
'perf', 'perf',
'perfmonitoring',
'places', 'places',
'privatebrowsing', 'privatebrowsing',
'processsingleton', 'processsingleton',
@ -98,12 +100,6 @@ DIRS += ['captivedetect']
if CONFIG['MOZ_WIDGET_TOOLKIT'] != "gonk" and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android': if CONFIG['MOZ_WIDGET_TOOLKIT'] != "gonk" and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
DIRS += ['terminator'] DIRS += ['terminator']
if CONFIG['NIGHTLY_BUILD']: # Bug 1136927 - Performance Monitoring is not ready for prime-time yet
DIRS += [
'aboutperformance',
'perfmonitoring',
]
DIRS += ['build'] DIRS += ['build']
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android': if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':