A real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications.
This is a bindings/wrapper library for the Odin programming language.
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.
git clone --recurse-submodules https://github.com/oskarnp/odin-tracyOr if you already had this repo cloned:
git submodule update --initbrew install pkg-config glfw freetype capstonecd tracy/profiler/build/unix
make release./tracy/profiler/build/unix/Tracy-releaseThis 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.batThis requires Visual Studio installed. Open "x64 Native Tools Command Prompt for VS 20XX" and run commands below.
cd tracy\profiler\build\win32
msbuild Tracy.sln -t:Build -p:Configuration=Release(or open solution with Visual Studio and build from there)
x64\Release\Tracy.exe- pkg-config
- freetype2
- capstone
- glfw3 (glfw-x11)
- (Only required if using LEGACY=1 below, otherwise not required and profiler server will use Wayland instead.)
cd tracy/profiler/build/unix
make release LEGACY=1Note
Remove LEGACY=1 above to use Wayland instead of GLFW.
./tracy/profiler/build/unix/Tracy-releasec++ -stdlib=libc++ -mmacosx-version-min=10.8 -std=c++11 -DTRACY_ENABLE -O2 -dynamiclib tracy/public/TracyClient.cpp -o tracy.dylibcl -MT -O2 -DTRACY_ENABLE -c tracy\public\TracyClient.cpp -Fotracy
lib tracy.objc++ -std=c++11 -DTRACY_ENABLE -O2 tracy/public/TracyClient.cpp -shared -fPIC -o tracy.soodin run demo -define:TRACY_ENABLE=trueand then click Connect in Tracy profiler server.
Tip
Run the profiled application (e.g. demo) in privileged mode
(sudo/administrator) to enable even more features in Tracy.
Important
For more details on how to use Tracy, please refer to the official manual.


