doc/perfetto: Add a simple perfetto out-of-tree trace config

Which is required when capturing a trace.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2026-02-06 16:46:23 +02:00
parent 8186697416
commit db4f7080f6
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,19 @@
buffers {
size_kb: 16384
fill_policy: RING_BUFFER
}
data_sources {
config {
name: "track_event"
track_event_config {
enabled_categories: "mesa.default"
enabled_categories: "mesa.slow"
}
}
}
duration_ms: 5000
write_into_file: true
file_write_period_ms: 500
flush_period_ms: 500

View file

@ -186,6 +186,10 @@ the meson invocation to configure the build.
If Perfetto support is built in, timeline points are added to Perfetto tracks
when Perfetto is running, even when the 'timeline' scope is not enabled.
For capturing a trace you can use the supplied
`out of process trace <https://gitlab.freedesktop.org/wayland/weston/-/tree/main/doc/perfetto/perfetto_out_of_process_trace.cfg>`_.
config file.
Inserting timeline points
~~~~~~~~~~~~~~~~~~~~~~~~~