mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 05:58:22 +02:00
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:
parent
8186697416
commit
db4f7080f6
2 changed files with 23 additions and 0 deletions
19
doc/perfetto/perfetto_out_of_process_trace.cfg
Normal file
19
doc/perfetto/perfetto_out_of_process_trace.cfg
Normal 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
|
||||
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue