From db4f7080f641c213451a41dc565da6b3749c6249 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 6 Feb 2026 16:46:23 +0200 Subject: [PATCH] doc/perfetto: Add a simple perfetto out-of-tree trace config Which is required when capturing a trace. Signed-off-by: Marius Vlad --- .../perfetto_out_of_process_trace.cfg | 19 +++++++++++++++++++ doc/sphinx/toc/libweston/log.rst | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 doc/perfetto/perfetto_out_of_process_trace.cfg diff --git a/doc/perfetto/perfetto_out_of_process_trace.cfg b/doc/perfetto/perfetto_out_of_process_trace.cfg new file mode 100644 index 000000000..f01c09997 --- /dev/null +++ b/doc/perfetto/perfetto_out_of_process_trace.cfg @@ -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 diff --git a/doc/sphinx/toc/libweston/log.rst b/doc/sphinx/toc/libweston/log.rst index 989b9a6bb..5cb62dcf6 100644 --- a/doc/sphinx/toc/libweston/log.rst +++ b/doc/sphinx/toc/libweston/log.rst @@ -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 `_. +config file. + Inserting timeline points ~~~~~~~~~~~~~~~~~~~~~~~~~