1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-28 17:15:48 +01:00

Add missing services.tld.

This commit is contained in:
Kris Maglione
2011-03-31 18:44:18 -04:00
parent c2d2415b1a
commit 477b1139fc
5 changed files with 39 additions and 11 deletions

View File

@@ -142,6 +142,7 @@ function defineModule(name, params, module) {
use[mod].push(module);
}
currentModule = module;
module.startTime = Date.now();
}
defineModule.loadLog = [];
@@ -163,7 +164,6 @@ defineModule.dump = function dump_() {
.replace(/^./gm, name + ": $&"));
}
defineModule.modules = [];
defineModule.times = { all: 0 };
defineModule.time = function time(major, minor, func, self) {
let time = Date.now();
if (typeof func !== "function")
@@ -176,13 +176,7 @@ defineModule.time = function time(major, minor, func, self) {
loaded.util && util.reportError(e);
}
let delta = Date.now() - time;
defineModule.times.all += delta;
defineModule.times[major] = (defineModule.times[major] || 0) + delta;
if (minor) {
defineModule.times[":" + minor] = (defineModule.times[":" + minor] || 0) + delta;
defineModule.times[major + ":" + minor] = (defineModule.times[major + ":" + minor] || 0) + delta;
}
JSMLoader.times.add(major, minor, Date.now() - time);
return res;
}