Bug 1936278 - Prevent search mode chiclet from being dismissed when clicking in page...
[gecko.git] / js / xpconnect / metrics.yaml
blob91ea27499da09d5406fe078f1789059111b01578
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
8 ---
9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
10 $tags:
11   - 'Core :: XPConnect'
14 performance.clone.deserialize:
15   size:
16     description: >
17       Size of deserialized data, in bytes
18     type: memory_distribution
19     memory_unit: byte
20     bugs:
21       - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631
22     data_reviews:
23       - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631#c4
24     notification_emails:
25       - sfink@mozilla.com
26     expires: never
28   items:
29     description: >
30       Size of deserialized data, in items
31     type: custom_distribution
32     unit: Serialized items
33     histogram_type: exponential
34     range_max: 2147483646
35     bucket_count: 50
36     bugs:
37       - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631
38     data_reviews:
39       - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631#c4
40     notification_emails:
41       - sfink@mozilla.com
42     expires: never
44   time:
45     description: >
46       Time spent deserializing structured data
47     type: timing_distribution
48     time_unit: microsecond
49     bugs:
50       - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631
51     data_reviews:
52       - https://bugzilla.mozilla.org/show_bug.cgi?id=1717631#c4
53     notification_emails:
54       - sfink@mozilla.com
55     expires: never
57 javascript.ion:
58   compile_time:
59     type: timing_distribution
60     time_unit: microsecond
61     description: >
62       Time in microseconds of an Ion compilation.
63     bugs:
64       - https://bugzilla.mozilla.org/show_bug.cgi?id=1918166
65     data_reviews:
66       - https://bugzilla.mozilla.org/show_bug.cgi?id=1918166
67     notification_emails:
68       - dpalmeiro@mozilla.com
69       - perf-telemetry-alerts@mozilla.com
70     expires: never
72 javascript.gc:
73   total_time:
74     type: timing_distribution
75     time_unit: millisecond
76     description: >
77       The total time taken by a major collection.
78       (Migrated from the geckoview metric of the same name.)
79     bugs:
80       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
81       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
82     data_reviews:
83       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c8
84     notification_emails:
85       - dev-telemetry-gc-alerts@mozilla.org
86       - jcoppeard@mozilla.com
87     expires: never
89   minor_time:
90     type: timing_distribution
91     time_unit: microsecond
92     description: >
93       The time taked by a minor (nursery) collection.
94       (Migrated from the geckoview metric of the same name.)
95     bugs:
96       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
97       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
98     data_reviews:
99       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
100     notification_emails:
101       - dev-telemetry-gc-alerts@mozilla.org
102       - jcoppeard@mozilla.com
103     expires: never
105   prepare_time:
106     type: timing_distribution
107     time_unit: millisecond
108     description: >
109       The time spent in the preparation phase.
110       (Migrated from the geckoview metric of the same name.)
111     bugs:
112       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
113       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
114     data_reviews:
115       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
116     notification_emails:
117       - dev-telemetry-gc-alerts@mozilla.org
118       - jcoppeard@mozilla.com
119     expires: never
121   mark_roots_time:
122     type: timing_distribution
123     time_unit: microsecond
124     description: >
125       The time spent marking GC roots.
126       (Migrated from the geckoview metric of the same name.)
127     bugs:
128       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
129       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
130     data_reviews:
131       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
132     notification_emails:
133       - dev-telemetry-gc-alerts@mozilla.org
134       - jcoppeard@mozilla.com
135     expires: never
137   mark_time:
138     type: timing_distribution
139     time_unit: millisecond
140     description: >
141       The time spent in the mark phase.
142       (Migrated from the geckoview metric of the same name.)
143     bugs:
144       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
145       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
146     data_reviews:
147       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
148     notification_emails:
149       - dev-telemetry-gc-alerts@mozilla.org
150       - jcoppeard@mozilla.com
151     expires: never
153   sweep_time:
154     type: timing_distribution
155     time_unit: millisecond
156     description: >
157       The time spent in the sweep phase.
158       (Migrated from the geckoview metric of the same name.)
159     bugs:
160       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
161       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
162     data_reviews:
163       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
164     notification_emails:
165       - dev-telemetry-gc-alerts@mozilla.org
166       - jcoppeard@mozilla.com
167     expires: never
169   compact_time:
170     type: timing_distribution
171     time_unit: millisecond
172     description: >
173       The time spent in the compact phase.
174       (Migrated from the geckoview metric of the same name.)
175     bugs:
176       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
177       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
178     data_reviews:
179       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
180     notification_emails:
181       - dev-telemetry-gc-alerts@mozilla.org
182       - jcoppeard@mozilla.com
183     expires: never
185   slice_time:
186     type: timing_distribution
187     time_unit: millisecond
188     description: >
189       The time spent running a GC slice.
190       (Migrated from the geckoview metric of the same name.)
191     bugs:
192       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419
193       - https://bugzilla.mozilla.org/show_bug.cgi?id=1877843
194     data_reviews:
195       - https://bugzilla.mozilla.org/show_bug.cgi?id=1636419#c17
196     notification_emails:
197       - dev-telemetry-gc-alerts@mozilla.org
198       - jcoppeard@mozilla.com
199     expires: never
201   budget:
202     type: timing_distribution
203     time_unit: millisecond
204     description: >
205       Requested GC slice budget.
206     bugs:
207       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
208     data_reviews:
209       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
210     notification_emails:
211       - dev-telemetry-gc-alerts@mozilla.org
212       - jcoppeard@mozilla.com
213     expires: never
215   budget_overrun:
216     type: timing_distribution
217     time_unit: microsecond
218     description: >
219       How long a GC slice ran over its budget.
220     bugs:
221       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
222     data_reviews:
223       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
224     notification_emails:
225       - dev-telemetry-gc-alerts@mozilla.org
226       - jcoppeard@mozilla.com
227     expires: never
229   animation:
230     type: timing_distribution
231     time_unit: millisecond
232     description: >
233       Time spent running JS GC when animating.
234     bugs:
235       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
236     data_reviews:
237       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
238     notification_emails:
239       - dev-telemetry-gc-alerts@mozilla.org
240       - jcoppeard@mozilla.com
241     expires: never
243   max_pause:
244     type: timing_distribution
245     time_unit: millisecond
246     description: >
247       Longest GC slice in a GC.
248     bugs:
249       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
250     data_reviews:
251       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
252     notification_emails:
253       - dev-telemetry-gc-alerts@mozilla.org
254       - jcoppeard@mozilla.com
255     expires: never
257   mark_gray:
258     type: timing_distribution
259     time_unit: millisecond
260     description: >
261       Time spent marking gray GC objects.
262     bugs:
263       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
264     data_reviews:
265       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
266     notification_emails:
267       - dev-telemetry-gc-alerts@mozilla.org
268       - jcoppeard@mozilla.com
269     expires: never
271   mark_weak:
272     type: timing_distribution
273     time_unit: millisecond
274     description: >
275       Time spent marking GC objects held live through weakmaps.
276     bugs:
277       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
278     data_reviews:
279       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
280     notification_emails:
281       - dev-telemetry-gc-alerts@mozilla.org
282       - jcoppeard@mozilla.com
283     expires: never
285   time_between:
286     type: timing_distribution
287     time_unit: second
288     description: >
289       Time spent in between garbage collections for the main runtime.
290     bugs:
291       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
292     data_reviews:
293       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
294     notification_emails:
295       - dev-telemetry-gc-alerts@mozilla.org
296       - jcoppeard@mozilla.com
297     expires: never
299   time_between_slices:
300     type: timing_distribution
301     time_unit: millisecond
302     description: >
303       Time spent in between garbage collections for the main runtime.
304     bugs:
305       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
306     data_reviews:
307       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
308     notification_emails:
309       - dev-telemetry-gc-alerts@mozilla.org
310       - jcoppeard@mozilla.com
311     expires: never
313   task_start_delay:
314     type: timing_distribution
315     time_unit: microsecond
316     description: >
317       Delay between queuing a GC task and the task starting.
318     bugs:
319       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
320     data_reviews:
321       - https://bugzilla.mozilla.org/show_bug.cgi?id=1932957
322     notification_emails:
323       - dev-telemetry-gc-alerts@mozilla.org
324       - jcoppeard@mozilla.com
325     expires: never
327 slow_script_warning:
328   shown_browser:
329     type: event
330     description: >
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
344       - esmyth@mozilla.com
345       - gkruitbosch@mozilla.com
346       - perf-telemetry-alerts@mozilla.com
347     expires: never
348     extra_keys:
349       hang_duration:
350         description: >
351           How long we believe the hang continued (ms).
352         type: string
353       uri_type:
354         description: >
355           The kind of script URL that hung.
356         type: string
357     telemetry_mirror: Slow_script_warning_Shown_Browser
359   shown_content:
360     type: event
361     description: >
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
368     expires: never
369     extra_keys:
370       end_reason:
371         description: >
372           Why the warning was hidden (user action, the process becoming responsive again, the browser quitting, etc.)
373         type: string
374       wait_count:
375         description: >
376           How many times the user elected to wait.
377         type: quantity
378       hang_duration:
379         description: >
380           How long we believe the hang continued (ms).
381         type: string
382       n_tab_deselect:
383         description: >
384           How many times the user switched away from a tab affected by this hang.
385         type: quantity
386       uri_type:
387         description: >
388           The kind of script URL that hung.
389         type: string
390       uptime:
391         description: >
392           How long the notification was up (ms).
393         type: string
394     telemetry_mirror: Slow_script_warning_Shown_Content
395     no_lint:
396       - COMMON_PREFIX
398 script.preloader:
399   mainthread_recompile:
400     type: counter
401     description: >
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.
406     bugs:
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
413     data_reviews:
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
420     notification_emails:
421       - dothayer@mozilla.com
422       - plawless@mozilla.com
423     expires: never
424     telemetry_mirror: SCRIPT_PRELOADER_MAINTHREAD_RECOMPILE