Bug 790732 - Components shim telemetry. r=mrbkap

This commit is contained in:
Bobby Holley 2013-03-26 22:18:56 -07:00
Родитель 5a05b3aa90
Коммит 6da472c7c2
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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",