Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages