mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Issue #21 - Remove Telemetry accumulation/structures from toolkit js.
This fixes toolkit modules and prevents toolkit component breakage. Also removes about:telemetry
This commit is contained in:
parent
8d800b1cb0
commit
44388b01a3
42 changed files with 22 additions and 3581 deletions
|
|
@ -215,14 +215,10 @@ this.PageThumbs = {
|
|||
* fullScale - request that a non-downscaled image be returned.
|
||||
*/
|
||||
captureToCanvas: function (aBrowser, aCanvas, aCallback, aArgs) {
|
||||
let telemetryCaptureTime = new Date();
|
||||
let args = {
|
||||
fullScale: aArgs ? aArgs.fullScale : false
|
||||
};
|
||||
this._captureToCanvas(aBrowser, aCanvas, args, (aCanvas) => {
|
||||
Services.telemetry
|
||||
.getHistogramById("FX_THUMBNAILS_CAPTURE_TIME_MS")
|
||||
.add(new Date() - telemetryCaptureTime);
|
||||
if (aCallback) {
|
||||
aCallback(aCanvas);
|
||||
}
|
||||
|
|
@ -450,10 +446,7 @@ this.PageThumbs = {
|
|||
*/
|
||||
_store: function PageThumbs__store(aOriginalURL, aFinalURL, aData, aNoOverwrite) {
|
||||
return Task.spawn(function* () {
|
||||
let telemetryStoreTime = new Date();
|
||||
yield PageThumbsStorage.writeData(aFinalURL, aData, aNoOverwrite);
|
||||
Services.telemetry.getHistogramById("FX_THUMBNAILS_STORE_TIME_MS")
|
||||
.add(new Date() - telemetryStoreTime);
|
||||
|
||||
Services.obs.notifyObservers(null, "page-thumbnail:create", aFinalURL);
|
||||
// We've been redirected. Create a copy of the current thumbnail for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue