diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-08-20 09:33:07 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-08-20 09:33:07 +0200 |
commit | f030cc6c05c32bcb6ad4ff2615fba84f4274e75e (patch) | |
tree | c0ee4e5dc2750d2bf025a3c3c2aa013128361167 /toolkit/components/search | |
parent | 3499a2e4932e3054a229987aca80e7abd9c75c6c (diff) | |
download | UXP-f030cc6c05c32bcb6ad4ff2615fba84f4274e75e.tar UXP-f030cc6c05c32bcb6ad4ff2615fba84f4274e75e.tar.gz UXP-f030cc6c05c32bcb6ad4ff2615fba84f4274e75e.tar.lz UXP-f030cc6c05c32bcb6ad4ff2615fba84f4274e75e.tar.xz UXP-f030cc6c05c32bcb6ad4ff2615fba84f4274e75e.zip |
Remove TelemetryStopwatch call sites from toolkit components.
Tag #21
Diffstat (limited to 'toolkit/components/search')
-rw-r--r-- | toolkit/components/search/current/nsSearchService.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/toolkit/components/search/current/nsSearchService.js b/toolkit/components/search/current/nsSearchService.js index 9f9003516..99e73b50b 100644 --- a/toolkit/components/search/current/nsSearchService.js +++ b/toolkit/components/search/current/nsSearchService.js @@ -21,8 +21,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "OS", "resource://gre/modules/osfile.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "Task", "resource://gre/modules/Task.jsm"); -XPCOMUtils.defineLazyModuleGetter(this, "TelemetryStopwatch", - "resource://gre/modules/TelemetryStopwatch.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "SearchStaticData", "resource://gre/modules/SearchStaticData.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "setTimeout", @@ -3873,21 +3871,17 @@ SearchService.prototype = { LOG("SearchService.init"); let self = this; if (!this._initStarted) { - TelemetryStopwatch.start("SEARCH_SERVICE_INIT_MS"); this._initStarted = true; Task.spawn(function* task() { try { // Complete initialization by calling asynchronous initializer. yield self._asyncInit(); - TelemetryStopwatch.finish("SEARCH_SERVICE_INIT_MS"); } catch (ex) { if (ex.result == Cr.NS_ERROR_ALREADY_INITIALIZED) { // No need to pursue asynchronous because synchronous fallback was // called and has finished. - TelemetryStopwatch.finish("SEARCH_SERVICE_INIT_MS"); } else { self._initObservers.reject(ex); - TelemetryStopwatch.cancel("SEARCH_SERVICE_INIT_MS"); } } }); |