summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/sessionstore/SessionSaver.jsm
diff options
context:
space:
mode:
authorGaming4JC <g4jc@bulletmail.org>2018-08-19 18:18:36 -0400
committerGaming4JC <g4jc@bulletmail.org>2018-08-19 18:18:36 -0400
commitf3ea4b9d7ac88193b0669e12a31a20685c89691b (patch)
tree36c3c1770d3a2e636e34259975401014e923ddf1 /application/basilisk/components/sessionstore/SessionSaver.jsm
parentf36ad080c6f2f13012180dc0ac566893be9020ad (diff)
downloadUXP-f3ea4b9d7ac88193b0669e12a31a20685c89691b.tar
UXP-f3ea4b9d7ac88193b0669e12a31a20685c89691b.tar.gz
UXP-f3ea4b9d7ac88193b0669e12a31a20685c89691b.tar.lz
UXP-f3ea4b9d7ac88193b0669e12a31a20685c89691b.tar.xz
UXP-f3ea4b9d7ac88193b0669e12a31a20685c89691b.zip
Basilisk: Remove TelemetryStopwatch
Diffstat (limited to 'application/basilisk/components/sessionstore/SessionSaver.jsm')
-rw-r--r--application/basilisk/components/sessionstore/SessionSaver.jsm16
1 files changed, 0 insertions, 16 deletions
diff --git a/application/basilisk/components/sessionstore/SessionSaver.jsm b/application/basilisk/components/sessionstore/SessionSaver.jsm
index d672f8877..fa3a67512 100644
--- a/application/basilisk/components/sessionstore/SessionSaver.jsm
+++ b/application/basilisk/components/sessionstore/SessionSaver.jsm
@@ -13,7 +13,6 @@ const Ci = Components.interfaces;
Cu.import("resource://gre/modules/Timer.jsm", this);
Cu.import("resource://gre/modules/Services.jsm", this);
Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
-Cu.import("resource://gre/modules/TelemetryStopwatch.jsm", this);
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
"resource://gre/modules/AppConstants.jsm");
@@ -52,19 +51,6 @@ function notify(subject, topic) {
Services.obs.notifyObservers(subject, topic, "");
}
-// TelemetryStopwatch helper functions.
-function stopWatch(method) {
- return function (...histograms) {
- for (let hist of histograms) {
- TelemetryStopwatch[method]("FX_SESSION_RESTORE_" + hist);
- }
- };
-}
-
-var stopWatchStart = stopWatch("start");
-var stopWatchCancel = stopWatch("cancel");
-var stopWatchFinish = stopWatch("finish");
-
/**
* The external API implemented by the SessionSaver module.
*/
@@ -182,7 +168,6 @@ var SessionSaverInternal = {
return Promise.resolve();
}
- stopWatchStart("COLLECT_DATA_MS", "COLLECT_DATA_LONGEST_OP_MS");
let state = SessionStore.getCurrentState(forceUpdateAllWindows);
PrivacyFilter.filterPrivateWindowsAndTabs(state);
@@ -226,7 +211,6 @@ var SessionSaverInternal = {
}
}
- stopWatchFinish("COLLECT_DATA_MS", "COLLECT_DATA_LONGEST_OP_MS");
return this._writeState(state);
},