Skip to content

allyourcodebase/tracy

 
 

Repository files navigation

CI

Tracy Profiler

This is Tracy, packaged for Zig.

Installation

Install Zig 0.14.1 and then run the following command:

zig build install-profiler
./zig-out/bin/tracy-profiler

You can also directly run the Tracy Profiler with the "run" step:

zig build run

System Dependencies

When building for Windows or macOS, no system dependencies are required.

The graphical profiler has the following dependencies on linux:

  • libGL: runtime dependency
  • libEGL: runtime dependency, not required when using -Dlegacy
  • libxkbcommon: not required when using -Dlegacy
  • libdbus-1: can be disabled with -Dno-fileselector or -Dportal=false
  • libgtk+-3.0: only required when using -Dportal=false

System Integrations

Tracy has been ported with support for Zig's System Integration Options. By default, all system dependencies will be avoided except libxkbcommon.

Cross Compilation

Windows

Cross compiling to windows works out of the box. It can even connect to a client that is running a different host (Linux).

zig build -Dtarget=x86_64-windows
zig build run -Dtarget=x86_64-windows -fwine # run the tracy profiler with Wine

Linux

Cross compiling to macOS can successfully produce a binary. The binary has a runtime dependency on libGL and will fail if it can't be found with dlopen.

zig build -Dtarget=x86_64-linux -Dno-fileselector -Dlegacy

About

Tracy ported to the zig build system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • C++ 92.3%
  • C 3.6%
  • TeX 2.3%
  • Python 1.0%
  • Fortran 0.4%
  • Zig 0.3%
  • Other 0.1%