How to use tracy?

I wanna profile a toy project of mine, have previously tried to figure out how to use tracy but failed miserably. Are there any comprehensive resources on how to use it with c/zig? (Or provide a step-by-step tutorial on how to use it?)

Tracy is a C++ project. There are zig bindings for tracy (in zig compiler source and elsewhere). Best way to start is by reading its documentation: https://github.com/wolfpld/tracy/releases/download/v0.10/tracy.pdf

Zig-Tracy is a project that includes an older version of tracy and builds it using build.zig. It also includes tracy bindings for zig:

zig-tracy is an example tracy project that downloads the latest version of tracy as a dependency, builds it using build.zig and includes zig bindings:

There is a blog post with some information about tracy and zig integration:
https://www.abhirag.com/blog/tracy/

2 Likes

I haven’t tried it yet, but these blog posts look very promising. Thank you for your help!