This is Tracy, packaged for Zig.
Install Zig 0.13.0 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
Most systems will already have the necessary dependencies installed by default.
ws2_32
(windows)dbghelp
(windows)advapi32
(windows)user32
(windows)execinfo
(freeBSD)
ws2_32
(windows)dbghelp
(windows, tracy-update only)ole32
(windows)uuid
(windows)shell32
(windows)AppKit
(macOS)UniformTypeIdentifiers
(macOS)libGL
(linux)libEGL
(linux, not required when using-Dlegacy
)libxkbcommon
(linux, not required when using-Dlegacy
)libdbus-1
(linux, can be disabled with-Dno-fileselector
or-Dportal=false
)libgtk+-3.0
(linux, only required when using-Dportal=false
)
Tracy has been ported with support for Zig's System Integration Options.
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. Whether it is functional has not been tested.
zig build -Dtarget=aarch64-macos -Dno-fileselector
file zig-out/bin/tracy-profiler
Cross compiling to Linux is currently not possible because of the dependency on libGL
and libEGL
.