Skip to content

Tracy profiler bindings/wrapper for the Odin programming language

License

Notifications You must be signed in to change notification settings

macsmol/odin-tracy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odin-tracy

Tracy profiler bindings/wrapper for the Odin programming language.

image

0. Prerequisites

This assumes you are using the latest nightly build or GitHub master of the Odin compiler. Since Odin is still under development this means these bindings might break in the future. Please create an issue or PR if that happens.

1. Cloning the sources

git clone --recurse-submodules https://github.com/oskarnp/odin-tracy

Or if you already had this repo cloned:

git submodule update --init

2. Building the Tracy profiler server

Mac OS

Install dependencies

brew install pkg-config glfw freetype capstone

Build profiler server

cd tracy/profiler/build/unix
make release

Run profiler server

./tracy/profiler/build/unix/Tracy-release

Windows

Install dependencies

This will download and install external dependencies (glfw3, libcapstone, libfreetype) to vcpkg local directory. This writes files only to the vcpkg\vcpkg directory and makes no other changes on your machine.

cd tracy\vcpkg
install_vcpkg_dependencies.bat

Build profiler server

cd tracy\profiler\build\win32
msbuild Tracy.sln -t:Build -p:Configuration=Release

(or open solution with Visual Studio and build from there)

Run profiler server

x64\Release\Tracy.exe

Linux

Install dependencies

  • pkg-config
  • glfw3
  • freetype2
  • capstone

Build profiler server

cd tracy/profiler/build/unix
make release

Run profiler server

./tracy/profiler/build/unix/Tracy-release

3. Building the Tracy profiler client library

Mac OS

c++ -stdlib=libc++ -mmacosx-version-min=10.8 -std=c++11 -DTRACY_ENABLE -O2 -dynamiclib tracy/TracyClient.cpp  -o tracy.dylib

Windows

cl -MT -O2 -DTRACY_ENABLE -c tracy\TracyClient.cpp -Fotracy
lib tracy.obj

Linux

TODO

4. (Optional) Run the demo application / profiler client

Windows/Linux

cd demo
odin run . -define:TRACY_ENABLE=true

Mac OS

cd demo
DYLB_LIBRARY_PATH=.. odin run . -define:TRACY_ENABLE=true

and then click Connect in Tracy profiler server.

About

Tracy profiler bindings/wrapper for the Odin programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Odin 100.0%