allyourcodebase/tracy
Tracy ported to the zig build system
master
master
This is Tracy, packaged for Zig.
Install Zig 0.14.1 and then run the following command:
zig build install-profiler
./zig-out/bin/tracy-profiler
You can also directly run the Tracy Profiler with the "run" step:
zig build run
When 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 -Dlegacy
libxkbcommon
: not required when using -Dlegacy
libdbus-1
: can be disabled with -Dno-fileselector
or -Dportal=false
libgtk+-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 Wine
Cross 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