kopia lustrzana https://github.com/c9/core
Adding logging of loading times
rodzic
7fdcb93b4d
commit
ac4b7a622c
|
@ -437,6 +437,7 @@
|
|||
});
|
||||
|
||||
app.on("service", function(name, plugin) {
|
||||
console.log("Plugin " + name + " loaded in: " + (Date.now() - start));
|
||||
if (name == "plugin.loader" || name == "plugin.installer" || name == "plugin.debug" || name == "plugin.manager")
|
||||
plugin.architect = app; // TODO why we rename app to architect?
|
||||
if (name == "c9")
|
||||
|
@ -446,6 +447,7 @@
|
|||
});
|
||||
|
||||
app.on("ready", function(){
|
||||
console.log("App ready called");
|
||||
if (app.services.configure)
|
||||
app.services.configure.services = app.services;
|
||||
|
||||
|
@ -463,13 +465,16 @@
|
|||
});
|
||||
// }
|
||||
app.services.tabManager.once("ready", function () {
|
||||
console.log("Tabmanager ready called");
|
||||
time.done("tabManager", "client");
|
||||
removeLoader();
|
||||
});
|
||||
app.services.tree.once("ready", function () {
|
||||
console.log("Tree ready called");
|
||||
time.done("tree", "client");
|
||||
});
|
||||
app.services.c9.once("connect", function () {
|
||||
console.log("Connect ready called")
|
||||
time.done("connect", "client");
|
||||
});
|
||||
});
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
"less": "^2.4.0",
|
||||
"mime": "~1.2.9",
|
||||
"mkdirp": "~0.3.5",
|
||||
"msgpack-js": "~0.1.1",
|
||||
"msgpack-js-browser": "~0.1.4",
|
||||
"nak": "git://github.com/cloud9ide/nak.git#6deef931594",
|
||||
"netutil": "~0.0.2",
|
||||
|
@ -56,6 +55,7 @@
|
|||
],
|
||||
"c9plugins": {
|
||||
"c9.ide.language": "#ebc064ef16",
|
||||
"c9.ide.language.core": "#undefined",
|
||||
"c9.ide.language.css": "#be07d72209",
|
||||
"c9.ide.language.generic": "#92210f5a48",
|
||||
"c9.ide.language.html": "#22fdc74869",
|
||||
|
@ -93,7 +93,6 @@
|
|||
"c9.ide.installer": "#cad8f8316d",
|
||||
"c9.ide.language.python": "#330b80e3b2",
|
||||
"c9.ide.language.go": "#6ce1c7a7ef",
|
||||
"c9.ide.mount": "#4c39359b87",
|
||||
"c9.ide.navigate": "#0b7ec7936c",
|
||||
"c9.ide.newresource": "#981a408a7b",
|
||||
"c9.ide.openfiles": "#2ae85a9e33",
|
||||
|
|
|
@ -50,6 +50,7 @@ define(function(require, module, exports) {
|
|||
|
||||
// Ref to focusManager - this will be changed later
|
||||
focusManager.tabManager = plugin;
|
||||
console.log("Initialized Tabmanager");
|
||||
|
||||
var loaded = false, changed = false;
|
||||
function load(){
|
||||
|
@ -335,6 +336,9 @@ define(function(require, module, exports) {
|
|||
plugin.on("tabDestroy", function(e){ if (e.last) updateTitle(); });
|
||||
settings.on("user/tabs", function(){ updateTitle(focussedTab); });
|
||||
}
|
||||
|
||||
console.log("Calling ready from tabmanager");
|
||||
emit("ready");
|
||||
}
|
||||
|
||||
var drawn = false;
|
||||
|
@ -1443,6 +1447,7 @@ define(function(require, module, exports) {
|
|||
/***** Lifecycle *****/
|
||||
|
||||
plugin.on("load", function(){
|
||||
console.log("Load beginning");
|
||||
load();
|
||||
});
|
||||
plugin.on("enable", function(){
|
||||
|
|
Ładowanie…
Reference in New Issue