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/osfile/modules | |
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/osfile/modules')
-rw-r--r-- | toolkit/components/osfile/modules/osfile_async_front.jsm | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/toolkit/components/osfile/modules/osfile_async_front.jsm b/toolkit/components/osfile/modules/osfile_async_front.jsm index 964e53084..93c7e66d6 100644 --- a/toolkit/components/osfile/modules/osfile_async_front.jsm +++ b/toolkit/components/osfile/modules/osfile_async_front.jsm @@ -56,7 +56,6 @@ Cu.import("resource://gre/modules/Task.jsm", this); // The implementation of communications Cu.import("resource://gre/modules/PromiseWorker.jsm", this); Cu.import("resource://gre/modules/Services.jsm", this); -Cu.import("resource://gre/modules/TelemetryStopwatch.jsm", this); Cu.import("resource://gre/modules/AsyncShutdown.jsm", this); var Native = Cu.import("resource://gre/modules/osfile/osfile_native.jsm", {}); @@ -1171,13 +1170,10 @@ File.writeAtomic = function writeAtomic(path, buffer, options = {}) { if (isTypedArray(buffer) && (!("bytes" in options))) { options.bytes = buffer.byteLength; }; - let refObj = {}; - TelemetryStopwatch.start("OSFILE_WRITEATOMIC_JANK_MS", refObj); let promise = Scheduler.post("writeAtomic", [Type.path.toMsg(path), Type.void_t.in_ptr.toMsg(buffer), options], [options, buffer, path]); - TelemetryStopwatch.finish("OSFILE_WRITEATOMIC_JANK_MS", refObj); return promise; }; |