Context switch samples are excluded from sampling statistics, as they are not produced by the statistical profiling timer and their stacks are always parked at the scheduler. During live capture this exclusion is structural, as such samples never enter the statistics processing path. On trace load, however, only the job which computes symbol statistics and the instruction pointer map filtered them out. The job which builds the per-symbol sample lists and the child sample map did not, so on a loaded trace these two structures included tens of thousands of context switch samples that a live session would not count. This made range-limited statistics counts exceed the whole-trace counts, inflated child sample costs in the symbol view, and caused the same trace to show different numbers live and after a save and reload. On the test trace, __schedule reported 56 exclusive samples but 32747 entries in its sample list. Apply the same context switch sample filter when building the symbol samples and child samples maps.
Tracy Profiler
A real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications.
Tracy supports profiling CPU (Direct support is provided for C, C++, Lua, Python and Fortran integration. At the same time, third-party bindings to many other languages exist on the internet, such as Rust, Zig, C#, OCaml, Odin, etc.), GPU (All major graphics/compute APIs: OpenGL, Vulkan, Direct3D 11/12, Metal, OpenCL, CUDA, WebGPU.), memory allocations, locks, context switches, automatically attribute screenshots to captured frames, and much more.
- Documentation for usage and build process instructions
- Releases containing the documentation (
tracy.pdf) and compiled Windows x64 binaries (Tracy-<version>.7z) as assets - Changelog
- Interactive demo
An Introduction to Tracy Profiler in C++ - Marcos Slomp - CppCon 2023
Introduction to Tracy Profiler v0.2
New features in Tracy Profiler v0.3
New features in Tracy Profiler v0.4
New features in Tracy Profiler v0.5
New features in Tracy Profiler v0.6
New features in Tracy Profiler v0.7
New features in Tracy Profiler v0.8



