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 ~~~~~~~~~~~~~~~~~~~~~~~~~