Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
scroll_jank/ | H | 25-Apr-2025 | - | 1,447 | 964 | |
BUILD.gn | H A D | 25-Apr-2025 | 539 | 15 | 12 | |
README | H A D | 25-Apr-2025 | 1.4 KiB | 15 | 8 | |
chrome_scrolls.sql | H A D | 25-Apr-2025 | 3.4 KiB | 112 | 81 | |
cpu_powerups.sql | H A D | 25-Apr-2025 | 5.8 KiB | 181 | 92 | |
event_latency_description.sql | H A D | 25-Apr-2025 | 9.9 KiB | 184 | 176 | |
histograms.sql | H A D | 25-Apr-2025 | 1.2 KiB | 45 | 29 | |
interactions.sql | H A D | 25-Apr-2025 | 1.9 KiB | 59 | 37 | |
metadata.sql | H A D | 25-Apr-2025 | 389 | 13 | 6 | |
page_loads.sql | H A D | 25-Apr-2025 | 4.1 KiB | 114 | 75 | |
perfetto_sql_files.gni | H A D | 25-Apr-2025 | 785 | 27 | 25 | |
speedometer.sql | H A D | 25-Apr-2025 | 6.4 KiB | 204 | 132 | |
startups.sql | H A D | 25-Apr-2025 | 2.8 KiB | 99 | 77 | |
tasks.sql | H A D | 25-Apr-2025 | 21.4 KiB | 648 | 439 | |
vsync_intervals.sql | H A D | 25-Apr-2025 | 1.7 KiB | 57 | 31 | |
web_content_interactions.sql | H A D | 25-Apr-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.