mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Issue #21 - Remove Telemetry from Push and devtools.
This commit is contained in:
parent
44388b01a3
commit
69ebaa5450
8 changed files with 1 additions and 71 deletions
|
|
@ -180,13 +180,10 @@ function loadSourceText(source) {
|
|||
[PROMISE]: Task.spawn(function* () {
|
||||
let transportType = gClient.localTransport ? "_LOCAL" : "_REMOTE";
|
||||
let histogramId = "DEVTOOLS_DEBUGGER_DISPLAY_SOURCE" + transportType + "_MS";
|
||||
let histogram = Services.telemetry.getHistogramById(histogramId);
|
||||
let startTime = Date.now();
|
||||
|
||||
const response = yield sourceClient.source();
|
||||
|
||||
histogram.add(Date.now() - startTime);
|
||||
|
||||
// Automatically pretty print if enabled and the test is
|
||||
// detected to be "minified"
|
||||
if (Prefs.autoPrettyPrint &&
|
||||
|
|
|
|||
|
|
@ -11474,7 +11474,6 @@ var Debugger =
|
|||
if (telemetry) {
|
||||
var transportType = this._transport.onOutputStreamReady === undefined ? "LOCAL_" : "REMOTE_";
|
||||
var histogramId = "DEVTOOLS_DEBUGGER_RDP_" + transportType + telemetry + "_MS";
|
||||
histogram = Services.telemetry.getHistogramById(histogramId);
|
||||
startTime = +new Date();
|
||||
}
|
||||
var outgoingPacket = {
|
||||
|
|
@ -11513,10 +11512,6 @@ var Debugger =
|
|||
if (thisCallback) {
|
||||
thisCallback(aResponse);
|
||||
}
|
||||
|
||||
if (histogram) {
|
||||
histogram.add(+new Date() - startTime);
|
||||
}
|
||||
}, "DebuggerClient.requester request callback"));
|
||||
}, "DebuggerClient.requester");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue