The repo provides a simple example for ztracy library.
Tested only with zig version 0.12.0 on Linux Fedora 39.
The original implementation is here: zig-gamedev/libs/ztracy
The original code for the example itself is here: example
🔔 The library has two repos (releases):
The recommended release to use is the first one.
However, if you get an error like:
$ zig build run
Tracy Profiler initialization failure: CPU doesn't support invariant TSC.
Define TRACY_NO_INVARIANT_CHECK=1 to ignore this error, *if you know what you are doing*.
Alternatively you may rebuild the application with the TRACY_TIMER_FALLBACK define to use lower resolution timer.
...
try to use the second release.
- zig-gamedev - main monorepo for @zig-gamedev libs and example applications
- tracy - frame profiler
That's all about this example.
All the best!