mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 20:20:18 +01:00
docs/perfetto: Be helpful and opinionated about config selection.
system.cfg should be your go-to, regardless of driver. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37826>
This commit is contained in:
parent
2d739be159
commit
09e496d6c0
1 changed files with 5 additions and 4 deletions
|
|
@ -61,9 +61,10 @@ To capture a trace with Perfetto you need to take the following steps:
|
|||
1. Build Perfetto from sources available at ``subprojects/perfetto`` following
|
||||
`this guide <https://perfetto.dev/docs/quickstart/linux-tracing>`__.
|
||||
|
||||
2. Create a `trace config <https://perfetto.dev/docs/concepts/config>`__, which is
|
||||
a json formatted text file with extension ``.cfg``, or use one of the config
|
||||
files under the ``src/tool/pps/cfg`` directory. More examples of config files
|
||||
2. Select a `trace config <https://perfetto.dev/docs/concepts/config>`__, likely
|
||||
``src/tool/pps/cfg/system.cfg`` which does whole-system including GPU
|
||||
profiling for any supported GPUs). Other configs are available in that
|
||||
directory for CPU-only or GPU-only tracing, and more examples of config files
|
||||
can be found in ``subprojects/perfetto/test/configs``.
|
||||
|
||||
3. Change directory to ``subprojects/perfetto`` and run a
|
||||
|
|
@ -106,7 +107,7 @@ the steps above :
|
|||
perfetto $ ./tools/ninja -C out/linux
|
||||
|
||||
# Start perfetto
|
||||
perfetto $ CONFIG=../../src/tool/pps/cfg/gpu.cfg OUT=out/linux/ ./tools/tmux -n
|
||||
perfetto $ CONFIG=../../src/tool/pps/cfg/system.cfg OUT=out/linux/ ./tools/tmux -n
|
||||
|
||||
# In parallel from the Mesa repo, start the PPS producer
|
||||
mesa $ ./build/src/tool/pps/pps-producer
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue