···11# Tracing with Perfetto {#tracing-perfetto}
2233<!--
44-Copyright 2021-2022, Collabora, Ltd. and the Monado contributors
44+Copyright 2021-2023, Collabora, Ltd. and the Monado contributors
55SPDX-License-Identifier: BSL-1.0
66-->
7788## Requirements
991010-Monado uses the [Perfetto][]/[Percetto][] framework for tracining support, you
1010+Monado uses the [Perfetto][]/[Percetto][] framework for tracing support. You
1111need to first build and install [Percetto][] in a place where CMake can find it.
1212-Build [Perfetto][] (you will have gotten the source at least as part of build
1212+Build [Perfetto][] (you will have gotten the source at least as part of build
1313[Percetto][]). It is a good idea to familiarise yourself with Perfetto before
1414-proceeding. You then need to build Monado with CMake and give make sure
1414+proceeding. You then need to build Monado with CMake and make sure
1515`XRT_FEATURE_TRACING` is enabled.
16161717-* Build and install [Percetto][].
1717+* Build and install [Percetto][] - **note** Depending on the version of Percetto
1818+ you are using you might need to have a release version of Perfetto available
1919+ or use the one that is included in percetto. A release version of Perfetto is
2020+ needed due to the `sdk/` directory and amalgamated files is only made there.
1821* Build and get [Perfetto][] running.
1922* Build Monado with CMake and with `XRT_FEATURE_TRACING` being `ON`.
2023···2427Please refer to [Perfetto][] documentation about the format and options of this
2528config file, but the most important bits is the `tracker_event` section.
26292727-```c
3030+```none
2831flush_period_ms: 30000
29323033incremental_state_config {
+5-5
doc/tracing-tracy.md
···11# Tracing with Tracy {#tracing-tracy}
2233<!--
44-Copyright 2022, Collabora, Ltd. and the Monado contributors
44+Copyright 2022-2023, Collabora, Ltd. and the Monado contributors
55SPDX-License-Identifier: BSL-1.0
66-->
77···21212222Start the [Tracy][] profiler, either try to connect directly to the host you
2323want to run Monado on, or wait for it to show up in the first initial UI. Then
2424-run Monado like you normally would, for example like below.
2424+run Monado like you normally would, for example as follows.
25252626```bash
2727monado-serivce
···3030## Notes
31313232Unlike @ref tracing-perfetto Tracy supports Windows, it also supports live
3333-viewing of the data stream. But Tracy can only trace on application at a time
3434-where as Perfetto can do multiple processes at the same time and whole system
3535-tracing giving a higher level overview of the whole system.
3333+viewing of the data stream. But Tracy can only trace one application at a time,
3434+whereas Perfetto can do multiple processes at the same time and whole system
3535+tracing, giving a higher level overview of the whole system.
36363737[Tracy]: https://github.com/wolfpld/tracy