ELF init_priority only orders constructors within a single module. All of a shared object's initializers run before any of the executable's, so an instrumented dependency .so emitting a zone from its static initializer creates the main thread producer token against the zero-initialized s_queue. The queue constructor then resets the producer list, orphaning that producer: every zone emitted on the main thread from that point on is enqueued into blocks no consumer ever iterates and silently lost, while sampling (worker thread producer) keeps working. Re-link such a producer right after the queue is constructed. In the common case, where nothing was emitted during shared object init, this merely constructs the main thread token eagerly.
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 graphic APIs: OpenGL, Vulkan, Direct3D 11/12, Metal, OpenCL, CUDA.), 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



