зеркало из https://github.com/mozilla/gecko-dev.git
Bug 790732 - Components shim telemetry. r=mrbkap
This commit is contained in:
Родитель
5a05b3aa90
Коммит
6da472c7c2
|
@ -5209,6 +5209,9 @@ const InterfaceShimEntry kInterfaceShimMap[] =
|
|||
static nsresult
|
||||
DefineComponentsShim(JSContext *cx, JS::HandleObject global)
|
||||
{
|
||||
// Keep track of how often this happens.
|
||||
Telemetry::Accumulate(Telemetry::COMPONENTS_SHIM_ACCESSED_BY_CONTENT, true);
|
||||
|
||||
// Create a fake Components object.
|
||||
JSObject *components = JS_NewObject(cx, nullptr, nullptr, global);
|
||||
NS_ENSURE_TRUE(components, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
|
|
@ -2895,6 +2895,10 @@
|
|||
"kind": "flag",
|
||||
"description": "Whether content ever accesed Components.interfaces in this session"
|
||||
},
|
||||
"COMPONENTS_SHIM_ACCESSED_BY_CONTENT": {
|
||||
"kind": "flag",
|
||||
"description": "Whether content ever accesed the Components shim in this session"
|
||||
},
|
||||
"CHECK_ADDONS_MODIFIED_MS": {
|
||||
"kind": "exponential",
|
||||
"high": "5000",
|
||||
|
|
Загрузка…
Ссылка в новой задаче