Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
scroll_jank/ | 04-Jul-2025 | - | 1,492 | 997 | ||
README | D | 04-Jul-2025 | 1.4 KiB | 15 | 8 | |
android_input.sql | D | 04-Jul-2025 | 4.9 KiB | 151 | 91 | |
chrome_scrolls.sql | D | 04-Jul-2025 | 28.6 KiB | 639 | 427 | |
cpu_powerups.sql | D | 04-Jul-2025 | 5.8 KiB | 190 | 102 | |
event_latency.sql | D | 04-Jul-2025 | 7.2 KiB | 220 | 140 | |
event_latency_description.sql | D | 04-Jul-2025 | 9.9 KiB | 184 | 176 | |
graphics_pipeline.sql | D | 04-Jul-2025 | 4.5 KiB | 126 | 72 | |
histograms.sql | D | 04-Jul-2025 | 1.2 KiB | 44 | 28 | |
input.sql | D | 04-Jul-2025 | 4.9 KiB | 151 | 105 | |
interactions.sql | D | 04-Jul-2025 | 2.1 KiB | 68 | 46 | |
metadata.sql | D | 04-Jul-2025 | 389 | 13 | 6 | |
page_loads.sql | D | 04-Jul-2025 | 4.2 KiB | 114 | 75 | |
scroll_interactions.sql | D | 04-Jul-2025 | 1.9 KiB | 67 | 48 | |
speedometer.sql | D | 04-Jul-2025 | 3.2 KiB | 105 | 68 | |
speedometer_2_1.sql | D | 04-Jul-2025 | 7.3 KiB | 232 | 181 | |
speedometer_3.sql | D | 04-Jul-2025 | 6.6 KiB | 193 | 151 | |
startups.sql | D | 04-Jul-2025 | 2.9 KiB | 99 | 77 | |
tasks.sql | D | 04-Jul-2025 | 21.4 KiB | 647 | 441 | |
vsync_intervals.sql | D | 04-Jul-2025 | 1.8 KiB | 57 | 31 | |
web_content_interactions.sql | D | 04-Jul-2025 | 1.6 KiB | 45 | 21 |
README
1# PerfettoSQL Chrome Standard Library 2 3The [PerfettoSQL Standard Library](https://perfetto.dev/docs/analysis/stdlib-docs) contains commonly used SQL tables, views, functions and macros to make it easier for users to query traces. The Chrome Standard Library contains those metrics that are specific to Chrome. 4 5The source of truth of the Perfetto SQL Chrome stdlib is the Chromium repository in `base/tracing/stdlib/` which makes it easier to develop new metrics and add tests for them in a single Chromium CL. So any changes to the Chrome stdlib should be made here. 6 7## Modifying the Chrome Stdlib 8 9You can add or modify a metric in `base/tracing/stdlib/chrome/`. If you add a new file here, you must add this to `perfetto_sql_files.gni` as well so it can be added to the source set. 10 11If you make changes to the chrome stdlib, you should add/modify a diff test too. You may also wish to add an end-to-end TestTraceProcessor unit/browser test. See [instructions](../../test/README) on how to add these tests. 12 13## PerfettoSQL Schema 14 15The Perfetto CI runs a [script](https://source.chromium.org/chromium/chromium/src/+/main:third_party/perfetto/tools/check_sql_modules.py) to check that standard library modules are documented with the proper schema. In Chromium, we can run these checks locally by running `tools/tracing/check_stdlib.py`. This is also run as a presubmit check, so you could also run `git cl presubmit` to run these after you've created a CL.