mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 1171210 - Add a telemetry probe for how long it takes to clear plugin cookies during sanitize. r=vladan
This commit is contained in:
parent
1fc136e380
commit
d71f544ddf
@ -180,6 +180,7 @@ Sanitizer.prototype = {
|
||||
clear: function ()
|
||||
{
|
||||
TelemetryStopwatch.start("FX_SANITIZE_COOKIES");
|
||||
TelemetryStopwatch.start("FX_SANITIZE_COOKIES_2");
|
||||
|
||||
var cookieMgr = Components.classes["@mozilla.org/cookiemanager;1"]
|
||||
.getService(Ci.nsICookieManager);
|
||||
@ -199,12 +200,15 @@ Sanitizer.prototype = {
|
||||
cookieMgr.removeAll();
|
||||
}
|
||||
|
||||
TelemetryStopwatch.finish("FX_SANITIZE_COOKIES_2");
|
||||
|
||||
// Clear deviceIds. Done asynchronously (returns before complete).
|
||||
let mediaMgr = Components.classes["@mozilla.org/mediaManagerService;1"]
|
||||
.getService(Ci.nsIMediaManagerService);
|
||||
mediaMgr.sanitizeDeviceIds(this.range && this.range[0]);
|
||||
|
||||
// Clear plugin data.
|
||||
TelemetryStopwatch.start("FX_SANITIZE_PLUGINS");
|
||||
const phInterface = Ci.nsIPluginHost;
|
||||
const FLAG_CLEAR_ALL = phInterface.FLAG_CLEAR_ALL;
|
||||
let ph = Cc["@mozilla.org/plugin/host;1"].getService(phInterface);
|
||||
@ -234,6 +238,7 @@ Sanitizer.prototype = {
|
||||
}
|
||||
}
|
||||
|
||||
TelemetryStopwatch.finish("FX_SANITIZE_PLUGINS");
|
||||
TelemetryStopwatch.finish("FX_SANITIZE_COOKIES");
|
||||
},
|
||||
|
||||
|
@ -7844,6 +7844,24 @@
|
||||
"extended_statistics_ok": true,
|
||||
"description": "Sanitize: Time it takes to sanitize cookies (ms)"
|
||||
},
|
||||
"FX_SANITIZE_COOKIES_2": {
|
||||
"alert_emails": ["firefox-dev@mozilla.org"],
|
||||
"expires_in_version": "50",
|
||||
"kind": "exponential",
|
||||
"high": "30000",
|
||||
"n_buckets": 20,
|
||||
"extended_statistics_ok": true,
|
||||
"description": "Sanitize: Time it takes to sanitize firefox cookies (ms). A subset of FX_SANITIZE_COOKIES."
|
||||
},
|
||||
"FX_SANITIZE_PLUGINS": {
|
||||
"alert_emails": ["firefox-dev@mozilla.org"],
|
||||
"expires_in_version": "50",
|
||||
"kind": "exponential",
|
||||
"high": "30000",
|
||||
"n_buckets": 20,
|
||||
"extended_statistics_ok": true,
|
||||
"description": "Sanitize: Time it takes to sanitize plugin cookies (ms). A subset of FX_SANITIZE_COOKIES."
|
||||
},
|
||||
"FX_SANITIZE_OFFLINEAPPS": {
|
||||
"alert_emails": ["firefox-dev@mozilla.org", "gavin@mozilla.com"],
|
||||
"expires_in_version": "50",
|
||||
|
Loading…
Reference in New Issue
Block a user