Skip to content

silversquirl/zig-tracy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tracy Zig

This is a standalone version of the Zig compiler's Tracy bindings, including build tooling.

Usage

  1. Add this repo as a dependency: zig fetch --save git+https://github.com/silversquirl/zig-tracy
  2. Add the tracy module to your executable in your build.zig:
    [...]
    const tracy_dep = b.dependency("tracy", .{
        .target = target,
        .optimize = optimize,
        .enable = b.option(bool, "tracy", "Enable profiling with Tracy") orelse false,
    });
    exe.root_module.addImport("tracy", tracy_dep.module("tracy"));
    [...]
  3. Instrument your code using the tracy module, then build with -Dtracy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages