mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1179052 - Add some raptor markers to b2g gecko startup r=gwagner
This commit is contained in:
parent
e05fe3cf8a
commit
11984b1fa8
@ -6,6 +6,8 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
window.performance.mark('gecko-settings-loadstart');
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
@ -16,7 +16,10 @@
|
||||
#ifdef FXOS_SIMULATOR
|
||||
<link rel="stylesheet" href="desktop.css" type="text/css">
|
||||
#endif
|
||||
|
||||
<script type="text/javascript">
|
||||
<!-- Add raptor performance marker -->
|
||||
window.performance.mark('gecko-shell-html-load');
|
||||
</script>
|
||||
<script type="application/javascript;version=1.8"
|
||||
src="chrome://b2g/content/settings.js"> </script>
|
||||
<script type="application/javascript;version=1.8"
|
||||
|
@ -4,6 +4,8 @@
|
||||
* 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/. */
|
||||
|
||||
window.performance.mark('gecko-shell-loadstart');
|
||||
|
||||
Cu.import('resource://gre/modules/ContactService.jsm');
|
||||
Cu.import('resource://gre/modules/DataStoreChangeNotifier.jsm');
|
||||
Cu.import('resource://gre/modules/AlarmService.jsm');
|
||||
@ -75,6 +77,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "SafeBrowsing",
|
||||
"resource://gre/modules/SafeBrowsing.jsm");
|
||||
#endif
|
||||
|
||||
window.performance.measure('gecko-shell-jsm-loaded', 'gecko-shell-loadstart');
|
||||
|
||||
function getContentWindow() {
|
||||
return shell.contentBrowser.contentWindow;
|
||||
}
|
||||
@ -228,6 +232,7 @@ var shell = {
|
||||
},
|
||||
|
||||
bootstrap: function() {
|
||||
window.performance.mark('gecko-shell-bootstrap');
|
||||
let startManifestURL =
|
||||
Cc['@mozilla.org/commandlinehandler/general-startup;1?type=b2gbootstrap']
|
||||
.getService(Ci.nsISupports).wrappedJSObject.startManifestURL;
|
||||
@ -242,6 +247,7 @@ var shell = {
|
||||
},
|
||||
|
||||
start: function shell_start() {
|
||||
window.performance.mark('gecko-shell-start');
|
||||
this._started = true;
|
||||
|
||||
// This forces the initialization of the cookie service before we hit the
|
||||
@ -372,6 +378,8 @@ var shell = {
|
||||
this.contentBrowser.src = homeURL;
|
||||
this.isHomeLoaded = false;
|
||||
|
||||
window.performance.mark('gecko-shell-system-frame-set');
|
||||
|
||||
ppmm.addMessageListener("content-handler", this);
|
||||
ppmm.addMessageListener("dial-handler", this);
|
||||
ppmm.addMessageListener("sms-handler", this);
|
||||
@ -647,6 +655,7 @@ var shell = {
|
||||
},
|
||||
|
||||
notifyContentStart: function shell_notifyContentStart() {
|
||||
window.performance.mark('gecko-shell-notify-content-start');
|
||||
this.contentBrowser.removeEventListener('mozbrowserloadstart', this, true);
|
||||
this.contentBrowser.removeEventListener('mozbrowserlocationchange', this, true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user