1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # Adding a new metric? We have docs for that!
6 # https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html
9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
14 performance.clone.deserialize:
17 Size of deserialized data, in bytes
18 type: memory_distribution
21 - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631
23 - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631#c4
30 Size of deserialized data, in items
31 type: custom_distribution
32 unit: Serialized items
33 histogram_type: exponential
37 - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631
39 - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631#c4
46 Time spent deserializing structured data
47 type: timing_distribution
48 time_unit: microsecond
50 - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631
52 - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631#c4
59 type: timing_distribution
60 time_unit: microsecond
62 Time in microseconds of an Ion compilation.
64 - https://bugzilla.mozilla.org/show_bug.cgi?id=1918166
66 - https://bugzilla.mozilla.org/show_bug.cgi?id=1918166
68 - dpalmeiro@mozilla.com
69 - perf-telemetry-alerts@mozilla.com
74 type: timing_distribution
75 time_unit: millisecond
77 The total time taken by a major collection.
78 (Migrated from the geckoview metric of the same name.)
80 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
81 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
83 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c8
85 - dev-telemetry-gc-alerts@mozilla.org
86 - jcoppeard@mozilla.com
90 type: timing_distribution
91 time_unit: microsecond
93 The time taked by a minor (nursery) collection.
94 (Migrated from the geckoview metric of the same name.)
96 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
97 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
99 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
101 - dev-telemetry-gc-alerts@mozilla.org
102 - jcoppeard@mozilla.com
106 type: timing_distribution
107 time_unit: millisecond
109 The time spent in the preparation phase.
110 (Migrated from the geckoview metric of the same name.)
112 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
113 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
115 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
117 - dev-telemetry-gc-alerts@mozilla.org
118 - jcoppeard@mozilla.com
122 type: timing_distribution
123 time_unit: microsecond
125 The time spent marking GC roots.
126 (Migrated from the geckoview metric of the same name.)
128 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
129 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
131 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
133 - dev-telemetry-gc-alerts@mozilla.org
134 - jcoppeard@mozilla.com
138 type: timing_distribution
139 time_unit: millisecond
141 The time spent in the mark phase.
142 (Migrated from the geckoview metric of the same name.)
144 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
145 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
147 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
149 - dev-telemetry-gc-alerts@mozilla.org
150 - jcoppeard@mozilla.com
154 type: timing_distribution
155 time_unit: millisecond
157 The time spent in the sweep phase.
158 (Migrated from the geckoview metric of the same name.)
160 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
161 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
163 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
165 - dev-telemetry-gc-alerts@mozilla.org
166 - jcoppeard@mozilla.com
170 type: timing_distribution
171 time_unit: millisecond
173 The time spent in the compact phase.
174 (Migrated from the geckoview metric of the same name.)
176 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
177 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
179 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
181 - dev-telemetry-gc-alerts@mozilla.org
182 - jcoppeard@mozilla.com
186 type: timing_distribution
187 time_unit: millisecond
189 The time spent running a GC slice.
190 (Migrated from the geckoview metric of the same name.)
192 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
193 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
195 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
197 - dev-telemetry-gc-alerts@mozilla.org
198 - jcoppeard@mozilla.com
202 type: timing_distribution
203 time_unit: millisecond
205 Requested GC slice budget.
207 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
209 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
211 - dev-telemetry-gc-alerts@mozilla.org
212 - jcoppeard@mozilla.com
216 type: timing_distribution
217 time_unit: microsecond
219 How long a GC slice ran over its budget.
221 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
223 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
225 - dev-telemetry-gc-alerts@mozilla.org
226 - jcoppeard@mozilla.com
230 type: timing_distribution
231 time_unit: millisecond
233 Time spent running JS GC when animating.
235 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
237 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
239 - dev-telemetry-gc-alerts@mozilla.org
240 - jcoppeard@mozilla.com
244 type: timing_distribution
245 time_unit: millisecond
247 Longest GC slice in a GC.
249 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
251 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
253 - dev-telemetry-gc-alerts@mozilla.org
254 - jcoppeard@mozilla.com
258 type: timing_distribution
259 time_unit: millisecond
261 Time spent marking gray GC objects.
263 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
265 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
267 - dev-telemetry-gc-alerts@mozilla.org
268 - jcoppeard@mozilla.com
272 type: timing_distribution
273 time_unit: millisecond
275 Time spent marking GC objects held live through weakmaps.
277 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
279 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
281 - dev-telemetry-gc-alerts@mozilla.org
282 - jcoppeard@mozilla.com
286 type: timing_distribution
289 Time spent in between garbage collections for the main runtime.
291 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
293 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
295 - dev-telemetry-gc-alerts@mozilla.org
296 - jcoppeard@mozilla.com
300 type: timing_distribution
301 time_unit: millisecond
303 Time spent in between garbage collections for the main runtime.
305 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
307 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
309 - dev-telemetry-gc-alerts@mozilla.org
310 - jcoppeard@mozilla.com
314 type: timing_distribution
315 time_unit: microsecond
317 Delay between queuing a GC task and the task starting.
319 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
321 - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
323 - dev-telemetry-gc-alerts@mozilla.org
324 - jcoppeard@mozilla.com
331 Recorded when a slow script hang is resolved.
332 This event was generated to correspond to the Legacy Telemetry event
333 slow_script_warning.shown#browser.
334 bugs: &slow_script_warning_shown_bugs
335 - https://bugzil.la/1652613
336 - https://bugzil.la/1667245
337 - https://bugzil.la/1672572
338 data_reviews: &slow_script_warning_shown_data_reviews
339 - https://bugzil.la/1652613
340 - https://bugzil.la/1667245
341 - https://bugzil.la/1672572
342 notification_emails: &slow_script_warning_shown_emails
343 - dothayer@mozilla.com
345 - gkruitbosch@mozilla.com
346 - perf-telemetry-alerts@mozilla.com
351 How long we believe the hang continued (ms).
355 The kind of script URL that hung.
357 telemetry_mirror: Slow_script_warning_Shown_Browser
362 Recorded when a slow script hang is resolved.
363 This event was generated to correspond to the Legacy Telemetry event
364 slow_script_warning.shown#content.
365 bugs: *slow_script_warning_shown_bugs
366 data_reviews: *slow_script_warning_shown_data_reviews
367 notification_emails: *slow_script_warning_shown_emails
372 Why the warning was hidden (user action, the process becoming responsive again, the browser quitting, etc.)
376 How many times the user elected to wait.
380 How long we believe the hang continued (ms).
384 How many times the user switched away from a tab affected by this hang.
388 The kind of script URL that hung.
392 How long the notification was up (ms).
394 telemetry_mirror: Slow_script_warning_Shown_Content
399 mainthread_recompile:
402 How many times we ended up recompiling a script from the script
403 preloader on the main thread.
404 This metric was generated to correspond to the Legacy Telemetry
405 scalar script.preloader.mainthread_recompile.
407 - https://bugzil.la/1364235
408 - https://bugzil.la/1590385
409 - https://bugzil.la/1623098
410 - https://bugzil.la/1649954
411 - https://bugzil.la/1689257
412 - https://bugzil.la/1754639
414 - https://bugzil.la/1364235
415 - https://bugzil.la/1590385
416 - https://bugzil.la/1623098
417 - https://bugzil.la/1649954
418 - https://bugzil.la/1689257
419 - https://bugzil.la/1754639
421 - dothayer@mozilla.com
422 - plawless@mozilla.com
424 telemetry_mirror: SCRIPT_PRELOADER_MAINTHREAD_RECOMPILE