Skip to content

Zig language bindings for the Tracy Profiler

License

Notifications You must be signed in to change notification settings

paveloom-f/zig-tracy-bindings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repository provides Zig language bindings for the Tracy Profiler.

Git mirrors

Prerequisites

Make sure you have installed Zigmod.

Example

Run

cd example
zigmod fetch
zig build run -Dtracy -Drelease-fast

to execute the example program.

You can also override the default call stack capture depth:

zig build run -Dtracy -Dtracy-depth=10 -Drelease-fast

Integrate

To integrate Tracy in your project:

  1. Add this repository as a dependency to your project:

    # <...>
    root_dependencies:
      - src: git https://github.com/paveloom-f/zig-tracy-bindings
  2. Edit your build script (see the example build script);

  3. Add Tracy calls in your source code (see the example program);

Acknowledgments

This is mostly a fork of Martin Wickham's version with a bit of extra niceties (like an allocator wrapper) from the Zig's version of the bindings. Also, Meghan's version showed how to integrate with Zigmod.

About

Zig language bindings for the Tracy Profiler

Resources

License

Stars

Watchers

Forks

Languages

  • Zig 100.0%