This is Tracy, packaged for Zig.
Install Zig 0.15.1 and then run the following command:
zig build install-profiler
./zig-out/bin/tracy-profilerYou can also directly run the Tracy Profiler with the "run" step:
zig build runWhen building for Windows or macOS, no system dependencies are required.
The graphical profiler has the following dependencies on linux:
libGL: runtime dependencylibEGL: runtime dependency, not required when using-Dlegacylibxkbcommon: not required when using-Dlegacylibdbus-1: can be disabled with-Dno-fileselectoror-Dportal=falselibgtk+-3.0: only required when using-Dportal=false
Tracy has been ported with support for Zig's System Integration Options. By default, all system dependencies will be avoided except libxkbcommon.
Cross compiling to windows works out of the box. It can even connect to a client that is running a different host (Linux).
zig build -Dtarget=x86_64-windows
zig build run -Dtarget=x86_64-windows -fwine # run the tracy profiler with WineCross compiling to macOS can successfully produce a binary. The binary has a runtime dependency on libGL and will fail if it can't be found with dlopen.
zig build -Dtarget=x86_64-linux -Dno-fileselector -Dlegacy