Bug 1177013 - Telemetry for CPOW cancelation (r=dvander)

This commit is contained in:
Bill McCloskey
2015-06-30 17:12:30 -07:00
parent ed9f346d12
commit 6761b288aa
2 changed files with 8 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
#include "mozilla/DebugOnly.h" #include "mozilla/DebugOnly.h"
#include "mozilla/Move.h" #include "mozilla/Move.h"
#include "mozilla/SizePrintfMacros.h" #include "mozilla/SizePrintfMacros.h"
#include "mozilla/Telemetry.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
@@ -2040,6 +2041,7 @@ void
CancelCPOWs() CancelCPOWs()
{ {
if (gParentProcessBlocker) { if (gParentProcessBlocker) {
mozilla::Telemetry::Accumulate(mozilla::Telemetry::IPC_TRANSACTION_CANCEL, true);
gParentProcessBlocker->CancelCurrentTransaction(); gParentProcessBlocker->CancelCurrentTransaction();
} }
} }

View File

@@ -4843,6 +4843,12 @@
"keyed" : true, "keyed" : true,
"description" : "Exceptions thrown by add-ons" "description" : "Exceptions thrown by add-ons"
}, },
"IPC_TRANSACTION_CANCEL": {
"alert_emails": ["billm@mozilla.com"],
"expires_in_version": "never",
"kind": "boolean",
"description": "True when an IPC transaction is canceled"
},
"MISBEHAVING_ADDONS_CPOW_TIME_MS": { "MISBEHAVING_ADDONS_CPOW_TIME_MS": {
"expires_in_version": "never", "expires_in_version": "never",
"kind": "exponential", "kind": "exponential",