Tracy Profiler icon

Tracy Profiler

Standard softwareFOSS · BSD-3-Clause

Nanosecond-resolution BSD real-time CPU & GPU frame profiler

Free (BSD-3-Clause) · Bartosz Taudul (wolfpld) · Standard software workflow; Steam AI disclosure does not apply.

AI
Standard
IP
Commercial-Safe IP
Engines
Godot, Bevy, Unreal
Platforms
Windows · Linux · macOS · CLI
Version
0.11.1
Technical Summary

Tracy Profiler is a BSD-3-Clause open-source real-time CPU, GPU, memory, and thread-contention profiler for Windows, Linux, macOS, and CLI workflows. Operating at roughly 2.25 nanoseconds per instrumented zone, it pinpoints micro-stutters and frame spikes across C++, Rust/Bevy, Godot 4, Unreal Engine, Zig, and Lua game engines at zero cost.

Technical Overview

Architecture and Production Workflow

Authored by Bartosz Taudul (wolfpld), Tracy avoids the heavy overhead of traditional instrumentation profilers by writing raw CPU rdtsc timestamps into lock-free per-thread ring buffers and offloading symbol resolution, compression, and statistical aggregation to an asynchronous background telemetry stream over TCP port 8086. At roughly 2.25 nanoseconds per zone, developers leave ZoneScoped macros inside hot Entity-Component-System (ECS) loops, broadphase collision checks, navmesh pathfinders, and audio mixer callbacks across millions of events per second without skewing real frame timing.

Tracy unifies five critical telemetry streams on a single nanosecond-aligned ImGui timeline:

  1. Manual Instrumentation & Scripting: C/C++, Rust (tracing-tracy), Zig, Odin, C#, Lua, and Python call zones with dynamic per-zone text payloads and frame plots (TracyPlot).
  2. OS Kernel Context Switches & Sampling: Captures Linux perf and Windows ETW scheduler events, showing exact thread preemptions, blocking syscalls, and hardware callstack samples even inside un-instrumented third-party DLLs.
  3. Lock Contention (TracyLockable): Visualizes mutex wait chains when worker job threads stall against main-thread locks.
  4. Memory Profiler (TracyAlloc / TracyFree): Tracks every live heap allocation, callstack origin, memory leak, and per-frame churn spike.
  5. GPU Queues: Aligns Vulkan, Direct3D 11/12, OpenGL, and Metal command timestamps directly beneath the submitting CPU thread.

Pricing, Licensing, and Commercial Rights

Tracy is 100% free and open source under the permissive BSD-3-Clause license with zero commercial restrictions or seat costs. Studios simply guard instrumentation behind the TRACY_ENABLE compile flag in Profile or RelWithDebInfo builds and strip it from final public Steam/console release binaries.

Strengths and Tradeoffs in Studio Pipelines

Pipeline DimensionStudio Production Reality
Where Tracy WinsSub-3ns instrumentation speed, native Godot 4.3+ (--profiler) and Rust Bevy support, plus buttery 60fps zooming across multi-gigabyte traces.
Operational CaveatsStrict protocol version lockstep (a 0.11.1 game binary requires a 0.11.1 desktop viewer) and high viewer RAM consumption during long live sessions unless piped to disk via tracy-capture.
When to Pair or SwapPair with Superluminal on Windows when profiling closed-source middleware binaries where recompiling with TracyClient.cpp is impossible.

AI Transparency & Steam Disclosure

Standard Software

Procedural math, physics, or manual authoring software.

Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.

Technical FAQ about Tracy Profiler

Why does my game fail to connect to the Tracy Profiler desktop viewer?
Almost all connection refusals happen because the embedded `TracyClient` version inside your game binary does not match the desktop `tracy-profiler` executable version (for example, mixing 0.10 with 0.11.1), or because `TRACY_ENABLE` was only defined in some translation units instead of globally across your build target.
How do you enable Tracy Profiler in Godot 4 or Rust Bevy projects?
In Rust Bevy, run `cargo run --release --features bevy/trace_tracy` while the matching Tracy viewer is open. In Godot 4.3+, compile the engine or template with `profiler=tracy` (or attach via GDExtension C++ bindings) to stream GDScript functions, physics ticks, and rendering server zones live.
Should `TRACY_ENABLE` stay defined in shipping Steam retail builds?
No. Even with `TRACY_ON_DEMAND` enabled, keeping `TRACY_ENABLE` active in public retail executables exposes open local TCP listening ports, retains internal function/file symbol strings in the binary, and incurs minor background ring-buffer overhead. Strip `TRACY_ENABLE` in final `Shipping` configurations.

More tools like Tracy Profiler