michal-z / Zig-Tracy

Zig language bindings for the incredible Tracy profiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use this binding

  1. Copy build_tracy.zig and tracy.zig into your project.
  2. In build.zig, import build_tracy.zig and call link.
  3. If tracy should be enabled, pass the path to the folder containing TracyClient.cpp.
  4. Otherwise, pass null as the path to tracy.
  5. In your source, use the bindings in tracy.zig to mark zones. All of the api points continue to exist when tracy is disabled, but they are empty.

For your convenience, the minimal source needed to build tracy client v0.7.8 is vendored in this repo. The tracy server and further documentation are available in the official tracy repo:

https://github.com/wolfpld/tracy

About

Zig language bindings for the incredible Tracy profiler

License:MIT License


Languages

Language:C++ 96.8%Language:Zig 1.6%Language:C 1.3%Language:Makefile 0.3%