• Home
Name Date Size #Lines LOC

..--

scroll_jank/06-Sep-2024-1,195784

BUILD.gnD06-Sep-2024539 1512

READMED06-Sep-2024878 105

chrome_scrolls.sqlD06-Sep-20243.4 KiB11281

cpu_powerups.sqlD06-Sep-20245.8 KiB18192

event_latency_description.sqlD06-Sep-20249.9 KiB184176

histograms.sqlD06-Sep-20241.2 KiB4529

interactions.sqlD06-Sep-20241.4 KiB3715

metadata.sqlD06-Sep-2024389 136

page_loads.sqlD06-Sep-20244.2 KiB11475

perfetto_sql_files.gniD06-Sep-2024733 2523

speedometer.sqlD06-Sep-20246.4 KiB204132

tasks.sqlD06-Sep-202421.4 KiB635430

vsync_intervals.sqlD06-Sep-20241.7 KiB5731

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 has been moved from Perfetto to the Chromium repository to make it easier to develop new metrics and add tests for them in a single Chromium CL.
6
7
8## PerfettoSQL Schema
9
10The 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.