How to record a Tracy trace
Tracy is a real-time, nanosecond-resolution frame profiler for C++ applications. It is designed to provide detailed performance insights, allowing developers to identify and resolve bottlenecks in their code. The Tracy Client is a GUI application that connects to C++ applications which support Tracy. The Tracy Client can be used to analyze frames, and the Tracy Client can be used to save and load profiled frames to and from a Tracy trace file.
MAK provides a copy of the Tracy Client with every installation of VR-Vantage, VR-Forces, and VR-Engage to allow customers who are experiencing performance issues a way of capturing their performance problems in a Tracy trace file which can be sent to the MAK Support Team for further analysis.
Walkthrough
Open up a MAK product. This walkthrough will use VR-Vantage.
After startup, in the main scene window, press the F2 key twice to bring up the Performance Statistics Overlay.
Performance Statistics OverlayIn the Collect Stats section near the bottom of the overlay, check the Tracy checkbox.
Start the Tracy Client application by running the Tracy.exe (Windows) or Tracy-release (Linux) executable in the bin64 folder of the product’s installation directory.
In the Tracy Client application, you should see VR-Vantage (vrvStealth) listed as a discovered client.
Tracy Client after StartupDouble-click the vrvStealth entry listed under the Discovered Clients section.
The Tracy capture on VR-Vantage has now begun and, as time passes, information about more and more frames rendered by VR-Vantage are being captured.
The number of captured frames should be limited to 1) minimize the size of the saved Tracy trace on disk and 2) capture the specific frames which exhibit the issue(s) that you wish the MAK Support Team to assist with.
To save the Tracy trace to disk, click the
button on the top left. Then click ‘Save trace’.
The Tracy Client will now ask where you would like to save the Tracy trace. After saving, you can send this to the MAK Support Team for analysis.