Tracy's Memory view groups allocations by pool. Guest mappings and Vulkan device memory are always tracked when a
client is attached. The finer pools below are off by default: set tracy_memory_detail=1 before the run to emit them.
Every game malloc and free then pays for a Tracy event, so use them only when the trace needs to say which pool
holds the bytes. These are the named pools a trace can show:
| Pool | What it holds |
|---|---|
guest | Every guest mapping and split, from mem_map/mem_unmap |
game malloc | Each block the game's malloc/new takes from the sandboxed arena, including realloc |
textures, render targets, rings, descriptors, compute arenas, … | Vulkan device memory, one pool per owner in ledger.c |
texture objects, render targets | Surf objects, including render targets and their saved crops |
pipelines, shader modules, descriptor sets | Those Vulkan objects' create and destroy pairs |
audio, video decode, audio dsp | Host buffers for hwopus, the FFmpeg video decoder and the Denoise state |
Two pools are deliberately one-sided: shader objects (VkShaderEXT) and the clear-shader modules have no destroy
site, so they stay live for the run by design. Command buffers go with their frame pool's reset and have no free
pair, so they have no pool. The host heap, kernel handles and static object pools have only plots, not events:
host heap and host rss sample the process, and gpu block free plots the free space inside Vulkan's device
blocks. A memory event carries no frame id, so the Memory view cannot say which frame holds a block.
tracy_memory_callstack adds the allocating stack to the detailed events (Sections, lock marks and
callstacks). Use tracy_zone_callstack on the zones that ask for one for the code
around a use.
Made from docs/dev/profiling.md at 69237645142c. GPL-3.0-or-later.