Bug 1933479 - Add tab close button on hover to vertical tabs when sidebar is collapse...
[gecko.git] / toolkit / components / processtools / metrics.yaml
blob3baeb94e5aa1020d64ae78776b5efca27eaf90ac
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 :: DOM: Content Processes"
13 power:
14   cpu_time_bogus_values:
15     type: counter
16     description: >
17       Impossibly large CPU time values that were discarded.
18     bugs:
19       - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
20     data_reviews:
21       - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
22     data_sensitivity:
23       - technical
24     notification_emails:
25       - florian@mozilla.com
26     expires: never
27     telemetry_mirror: POWER_CPU_TIME_BOGUS_VALUES
29   cpu_time_per_process_type_ms:
30     type: labeled_counter
31     description: >
32       CPU time used by each process type in ms.
33     bugs:
34       - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
35     data_reviews:
36       - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
37     data_sensitivity:
38       - technical
39     notification_emails:
40       - florian@mozilla.com
41     expires: never
42     labels: &per_process_type_labels
43       - parent.active
44       - parent.active.playing-audio
45       - parent.active.playing-video
46       - parent.inactive
47       - parent.inactive.playing-audio
48       - parent.inactive.playing-video
49       - prealloc
50       - privilegedabout
51       - rdd
52       - socket
53       - web.background
54       - web.background-perceivable
55       - web.foreground
56       - extension
57       - gpu
58       - gmplugin
59       - utility
60     telemetry_mirror: POWER_CPU_TIME_PER_PROCESS_TYPE_MS
62   cpu_time_per_tracker_type_ms:
63     type: labeled_counter
64     description: >
65       CPU time used by content processes used only for tracking resources,
66       labeled by the category of the tracker.
67     bugs:
68       - https://bugzilla.mozilla.org/show_bug.cgi?id=1802361
69     data_reviews:
70       - https://bugzilla.mozilla.org/show_bug.cgi?id=1802361
71     data_sensitivity:
72       - technical
73     notification_emails:
74       - florian@mozilla.com
75     expires: never
76     labels:
77       - ad
78       - analytics
79       - cryptomining
80       - fingerprinting
81       - social
82       - unknown
84   gpu_time_per_process_type_ms:
85     type: labeled_counter
86     description: >
87       GPU time used by each process type in ms.
88     bugs:
89       - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
90     data_reviews:
91       - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
92     data_sensitivity:
93       - technical
94     notification_emails:
95       - florian@mozilla.com
96     expires: never
97     labels: *per_process_type_labels
98     telemetry_mirror: POWER_GPU_TIME_PER_PROCESS_TYPE_MS
100   gpu_time_bogus_values:
101     type: counter
102     description: >
103       Impossibly large GPU time values that were discarded.
104     bugs:
105       - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
106     data_reviews:
107       - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
108     data_sensitivity:
109       - technical
110     notification_emails:
111       - florian@mozilla.com
112     expires: never
113     telemetry_mirror: POWER_GPU_TIME_BOGUS_VALUES
115   energy_per_process_type:
116     type: labeled_counter
117     description: >
118       How much energy (in µWh) has been used, broken down by process type.
119       Only available on Apple Silicon.
120     bugs:
121       - https://bugzilla.mozilla.org/show_bug.cgi?id=1898057
122     data_reviews:
123       - https://bugzilla.mozilla.org/show_bug.cgi?id=1898057
124     data_sensitivity:
125       - technical
126     notification_emails:
127       - florian@mozilla.com
128     expires: never
129     labels: *per_process_type_labels
131   wakeups_per_process_type:
132     type: labeled_counter
133     description: >
134       How many times threads woke up and could have woken up a CPU core.
135       Broken down by process type.
136     bugs:
137       - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
138     data_reviews:
139       - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
140     data_sensitivity:
141       - technical
142     notification_emails:
143       - florian@mozilla.com
144     expires: never
145     labels: *per_process_type_labels
146     telemetry_mirror: POWER_WAKEUPS_PER_PROCESS_TYPE
148   total_cpu_time_ms:
149     type: counter
150     description: >
151       Total CPU time used by all processes in ms.
152     bugs:
153       - https://bugzilla.mozilla.org/show_bug.cgi?id=1736040
154     data_reviews:
155       - https://bugzilla.mozilla.org/show_bug.cgi?id=1736040
156     data_sensitivity:
157       - technical
158     notification_emails:
159       - florian@mozilla.com
160     expires: never
161     telemetry_mirror: POWER_TOTAL_CPU_TIME_MS
163   total_gpu_time_ms:
164     type: counter
165     description: >
166       Total GPU time used by all processes in ms.
167     bugs:
168       - https://bugzilla.mozilla.org/show_bug.cgi?id=1743176
169     data_reviews:
170       - https://bugzilla.mozilla.org/show_bug.cgi?id=1743176
171     data_sensitivity:
172       - technical
173     notification_emails:
174       - florian@mozilla.com
175     expires: never
176     telemetry_mirror: POWER_TOTAL_GPU_TIME_MS
178   total_thread_wakeups:
179     type: counter
180     description: >
181       How many times threads woke up and could have woken up a CPU core.
182     bugs:
183       - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
184     data_reviews:
185       - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
186     data_sensitivity:
187       - technical
188     notification_emails:
189       - florian@mozilla.com
190     expires: never
191     telemetry_mirror: POWER_TOTAL_THREAD_WAKEUPS
193 power.wakeups_per_thread:
194   parent_active: &per_thread_wakeups
195     type: labeled_counter
196     description: >
197       How many times threads woke up and could have woken up a CPU core.
198       Broken down by thread name for a given process type.
199     bugs:
200       - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
201       - https://bugzilla.mozilla.org/show_bug.cgi?id=1901535
202     data_reviews:
203       - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
204     data_sensitivity:
205       - technical
206     notification_emails:
207       - florian@mozilla.com
208     expires: never
209     labels: &per_thread_labels
210       - androidui
211       - asynclogger
212       - audioipc
213       - audioipc_callback_rpc
214       - audioipc_client_callback
215       - audioipc_client_rpc
216       - audioipc_devicecollection_rpc
217       - audioipc_server_callback
218       - audioipc_server_rpc
219       - backgroundthreadpool
220       - bgiothreadpool
221       - bgreadurls
222       - bhmgr_monitor
223       - bhmgr_processor
224       - cameras_ipc
225       - canvasrenderer
226       - capturethread
227       - classifier_update
228       - com_mta
229       - compositor
230       - convolverworker
231       - cookie
232       - cubeboperation
233       - datachannel_io
234       - dns_resolver
235       - dom_worker
236       - dom_worklet
237       - domcachethread
238       - extensionprotocolhandler
239       - font_loader
240       - fontenumthread
241       - fs_broker
242       - geckomain
243       - gmpthread
244       - graphrunner
245       - hrtfdatabaseldr
246       - html5_parser
247       - imagebridgechld
248       - imageio
249       - indexeddb
250       - initfontlist
251       - inotifyeventthread
252       - indexeddb_io
253       - ipc_i_o_child
254       - ipc_i_o_parent
255       - ipc_launch
256       - ipdl_background
257       - js_watchdog
258       - jump_list
259       - libwebrtcmodulethread
260       - link_monitor
261       - ls_thread
262       - mdns_service
263       - mediacache
264       - mediadecoderstatemachine
265       - mediapdecoder
266       - mediasupervisor
267       - mediatimer
268       - mediatrackgrph
269       - memorypoller
270       - mozstorage
271       - mtransport
272       - netlink_monitor
273       - pacerthread
274       - permission
275       - playeventsound
276       - processhangmon
277       - profilerchild
278       - proxyresolution
279       - quotamanager_io
280       - registerfonts
281       - remotebackbuffer
282       - remotelzystream
283       - remvidchild
284       - renderer
285       - sandboxreporter
286       - savescripts
287       - socket_thread
288       - softwarevsyncthread
289       - sqldb_content-prefs_sqlite
290       - sqldb_cookies_sqlite
291       - sqldb_formhistory_sqlite
292       - ssl_cert
293       - startupcache
294       - streamtrans
295       - stylethread
296       - swcomposite
297       - taskcontroller
298       - timer
299       - toastbgthread
300       - trr_background
301       - untrusted_modules
302       - url_classifier
303       - videocapture
304       - vsynciothread
305       - webrtccallthread
306       - webrtcworker
307       - wincompositor
308       - windowsvsyncthread
309       - winwindowocclusioncalc
310       - wifi_tickler
311       - worker_launcher
312       - wrrenderbackend
313       - wrscenebuilder
314       - wrscenebuilderlp
315       - wrworker
316       - wrworkerlp
318   parent_inactive: *per_thread_wakeups
319   content_foreground: *per_thread_wakeups
320   content_background: *per_thread_wakeups
321   gpu_process: *per_thread_wakeups
323 power.cpu_ms_per_thread:
324   parent_active: &per_thread_cpu_ms
325     type: labeled_counter
326     description: >
327       How many miliseconds of CPU time were used.
328       Broken down by thread name for a given process type.
329     bugs:
330       - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
331       - https://bugzilla.mozilla.org/show_bug.cgi?id=1901535
332     data_reviews:
333       - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
334     data_sensitivity:
335       - technical
336     notification_emails:
337       - florian@mozilla.com
338     expires: never
339     labels: *per_thread_labels
341   parent_inactive: *per_thread_cpu_ms
342   content_foreground: *per_thread_cpu_ms
343   content_background: *per_thread_cpu_ms
344   gpu_process: *per_thread_cpu_ms
346 power.battery:
347   percentage_when_user_active:
348     type: custom_distribution
349     description: >
350       Records how many percent of battery was available for each period of
351       user activity.
352     range_min: 0
353     range_max: 100
354     bucket_count: 100
355     histogram_type: linear
356     unit: percent
357     bugs:
358       - https://bugzilla.mozilla.org/show_bug.cgi?id=1769255
359     data_reviews:
360       - https://bugzilla.mozilla.org/show_bug.cgi?id=1769255
361     data_sensitivity:
362       - interaction
363       - technical
364     notification_emails:
365       - florian@mozilla.com
366     expires: never