Files
tracy/profiler/src/achievements/FrameImages.md
2026-06-06 13:19:55 +02:00

853 B

A picture is worth a thousand words

Tracy allows you to add context to each frame, by attaching a screenshot. You can do this with the FrameImage macro.

You will have to do the screen capture and resizing yourself, which can be a bit complicated. The manual provides a sample code that shows how to do this in a performant way.

The frame images are displayed in the context of a frame, for example, when you hover over the frame in the timeline or in the frame graph at the top of the screen.

You can even view a recording of what your application was doing by clicking the  Tools icon and then selecting the  Playback option. Try it out!

The FrameImage macro is a great way to see what happened in your application at a particular time. Maybe you have a performance problem that only occurs when a certain object is on the screen?