diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-08-20 08:18:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 08:18:55 +0200 |
commit | 29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd (patch) | |
tree | 36c3c1770d3a2e636e34259975401014e923ddf1 /application/basilisk/components/sessionstore/SessionSaver.jsm | |
parent | f36ad080c6f2f13012180dc0ac566893be9020ad (diff) | |
parent | f3ea4b9d7ac88193b0669e12a31a20685c89691b (diff) | |
download | UXP-29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd.tar UXP-29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd.tar.gz UXP-29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd.tar.lz UXP-29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd.tar.xz UXP-29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd.zip |
Merge pull request #716 from g4jc/remove_telemetry_stopwatch
Basilisk: Remove TelemetryStopwatch
Diffstat (limited to 'application/basilisk/components/sessionstore/SessionSaver.jsm')
-rw-r--r-- | application/basilisk/components/sessionstore/SessionSaver.jsm | 16 |
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); }, |