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
11 - "Core :: DOM: Content Processes"
14 cpu_time_bogus_values:
17 Impossibly large CPU time values that were discarded.
19 - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
21 - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
27 telemetry_mirror: POWER_CPU_TIME_BOGUS_VALUES
29 cpu_time_per_process_type_ms:
32 CPU time used by each process type in ms.
34 - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
36 - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
42 labels: &per_process_type_labels
44 - parent.active.playing-audio
45 - parent.active.playing-video
47 - parent.inactive.playing-audio
48 - parent.inactive.playing-video
54 - web.background-perceivable
60 telemetry_mirror: POWER_CPU_TIME_PER_PROCESS_TYPE_MS
62 cpu_time_per_tracker_type_ms:
65 CPU time used by content processes used only for tracking resources,
66 labeled by the category of the tracker.
68 - https://bugzilla.mozilla.org/show_bug.cgi?id=1802361
70 - https://bugzilla.mozilla.org/show_bug.cgi?id=1802361
84 gpu_time_per_process_type_ms:
87 GPU time used by each process type in ms.
89 - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
91 - https://bugzilla.mozilla.org/show_bug.cgi?id=1747138
97 labels: *per_process_type_labels
98 telemetry_mirror: POWER_GPU_TIME_PER_PROCESS_TYPE_MS
100 gpu_time_bogus_values:
103 Impossibly large GPU time values that were discarded.
105 - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
107 - https://bugzilla.mozilla.org/show_bug.cgi?id=1755733
111 - florian@mozilla.com
113 telemetry_mirror: POWER_GPU_TIME_BOGUS_VALUES
115 energy_per_process_type:
116 type: labeled_counter
118 How much energy (in µWh) has been used, broken down by process type.
119 Only available on Apple Silicon.
121 - https://bugzilla.mozilla.org/show_bug.cgi?id=1898057
123 - https://bugzilla.mozilla.org/show_bug.cgi?id=1898057
127 - florian@mozilla.com
129 labels: *per_process_type_labels
131 wakeups_per_process_type:
132 type: labeled_counter
134 How many times threads woke up and could have woken up a CPU core.
135 Broken down by process type.
137 - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
139 - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
143 - florian@mozilla.com
145 labels: *per_process_type_labels
146 telemetry_mirror: POWER_WAKEUPS_PER_PROCESS_TYPE
151 Total CPU time used by all processes in ms.
153 - https://bugzilla.mozilla.org/show_bug.cgi?id=1736040
155 - https://bugzilla.mozilla.org/show_bug.cgi?id=1736040
159 - florian@mozilla.com
161 telemetry_mirror: POWER_TOTAL_CPU_TIME_MS
166 Total GPU time used by all processes in ms.
168 - https://bugzilla.mozilla.org/show_bug.cgi?id=1743176
170 - https://bugzilla.mozilla.org/show_bug.cgi?id=1743176
174 - florian@mozilla.com
176 telemetry_mirror: POWER_TOTAL_GPU_TIME_MS
178 total_thread_wakeups:
181 How many times threads woke up and could have woken up a CPU core.
183 - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
185 - https://bugzilla.mozilla.org/show_bug.cgi?id=1759535
189 - florian@mozilla.com
191 telemetry_mirror: POWER_TOTAL_THREAD_WAKEUPS
193 power.wakeups_per_thread:
194 parent_active: &per_thread_wakeups
195 type: labeled_counter
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.
200 - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
201 - https://bugzilla.mozilla.org/show_bug.cgi?id=1901535
203 - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
207 - florian@mozilla.com
209 labels: &per_thread_labels
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
238 - extensionprotocolhandler
259 - libwebrtcmodulethread
264 - mediadecoderstatemachine
288 - softwarevsyncthread
289 - sqldb_content-prefs_sqlite
290 - sqldb_cookies_sqlite
291 - sqldb_formhistory_sqlite
309 - winwindowocclusioncalc
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
327 How many miliseconds of CPU time were used.
328 Broken down by thread name for a given process type.
330 - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
331 - https://bugzilla.mozilla.org/show_bug.cgi?id=1901535
333 - https://bugzilla.mozilla.org/show_bug.cgi?id=1763474
337 - florian@mozilla.com
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
347 percentage_when_user_active:
348 type: custom_distribution
350 Records how many percent of battery was available for each period of
355 histogram_type: linear
358 - https://bugzilla.mozilla.org/show_bug.cgi?id=1769255
360 - https://bugzilla.mozilla.org/show_bug.cgi?id=1769255
365 - florian@mozilla.com