An Introduction to Tracy Profiler in C++
summary
Tracy is an interactive C++ profiler that actually shows a timeline, not just aggregates: nanosecond resolution with measured timer costs like ~4 ns on some Intel chips and ~41 ns on an M1, pushes millions of events per second, and mixes manual instrumentation, selective sampling and automatic sampling. The demo compiles client code, connects to a server, profiles Quake with OpenGL GPU+CPU correlation, captures call stacks to about call-stack depth ~60, logs messages, plots values and tracks allocations.
AI-written summary · about
chapters (14)
- 0:00Welcome
- 1:48Why current profilers fall short
- 7:44Live demo: Tracy Profiler
- 9:29Frame profiling view
- 18:37Zone scopes in Tracy
- 23:57Enhancing zones
- 32:15Advanced zone features
- 37:34Memory allocation tracking
- 39:20Lock analysis
- 41:32Deep dive options
- 47:33GPU profiling
- 50:02Sampling mode insights
- 56:46Tracy overhead
- 1:00:00Frame marking and closing
related talks
01h 03m...Scaling Visualization in concurrent C++ programs
57mDTrace for Rust... and everything else too!
55mThe performance Addict's Toolbox
05mInterview
01h 05mThe Speed Game: Automated Trading Systems in C++
27mImproving Rust Performance Through Profiling and Benchmarking
01h 01mBack to Basics: Debugging in C++
51mBoosting Software Efficiency in C++: 100% Performance Improvement in a C++ Embedded System
