Bug 1347552 - Add telemetry for the Layout panel. r=sole, bsmedberg

This commit is contained in:
Gabriel Luong 2017-03-21 15:06:44 -04:00
Родитель 246fba64e9
Коммит 1870ffbc60
3 изменённых файлов: 20 добавлений и 1 удалений

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

@ -97,6 +97,10 @@ Telemetry.prototype = {
histogram: "DEVTOOLS_COMPUTEDVIEW_OPENED_COUNT",
timerHistogram: "DEVTOOLS_COMPUTEDVIEW_TIME_ACTIVE_SECONDS"
},
layoutview: {
histogram: "DEVTOOLS_LAYOUTVIEW_OPENED_COUNT",
timerHistogram: "DEVTOOLS_LAYOUTVIEW_TIME_ACTIVE_SECONDS"
},
fontinspector: {
histogram: "DEVTOOLS_FONTINSPECTOR_OPENED_COUNT",
timerHistogram: "DEVTOOLS_FONTINSPECTOR_TIME_ACTIVE_SECONDS"

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

@ -29,7 +29,7 @@ function* testSidebar(toolbox) {
info("Testing sidebar");
let inspector = toolbox.getCurrentPanel();
let sidebarTools = ["ruleview", "computedview", "fontinspector",
let sidebarTools = ["ruleview", "computedview", "layoutview", "fontinspector",
"animationinspector"];
// Concatenate the array with itself so that we can open each tool twice.

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

@ -7745,6 +7745,14 @@
"description": "Number of times the DevTools Computed View has been opened.",
"releaseChannelCollection": "opt-out"
},
"DEVTOOLS_LAYOUTVIEW_OPENED_COUNT": {
"alert_emails": ["dev-developer-tools@lists.mozilla.org"],
"expires_in_version": "never",
"kind": "count",
"bug_numbers": [1347552],
"description": "Number of times the DevTools Layout View has been opened.",
"releaseChannelCollection": "opt-out"
},
"DEVTOOLS_FONTINSPECTOR_OPENED_COUNT": {
"alert_emails": ["dev-developer-tools@lists.mozilla.org"],
"expires_in_version": "never",
@ -8040,6 +8048,13 @@
"n_buckets": 100,
"description": "How long has the computed view been active (seconds)"
},
"DEVTOOLS_LAYOUTVIEW_TIME_ACTIVE_SECONDS": {
"expires_in_version": "never",
"kind": "exponential",
"high": 10000000,
"n_buckets": 100,
"description": "How long has the layout view been active (seconds)"
},
"DEVTOOLS_FONTINSPECTOR_TIME_ACTIVE_SECONDS": {
"expires_in_version": "never",
"kind": "exponential",