wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.04k stars 664 forks source link

Function to free an entire named pool #915

Open HybridEidolon opened 1 day ago

HybridEidolon commented 1 day ago

Currently, it's possible to put allocations in named pools, ala

TracyCAllocN(p, sizeof(mystruct_t), pool_name);

However, you have to free allocations individually from the pool; there is no way to free the entire pool altogether:

TracyCFreePoolN(pool_name);

For long-lived pool allocators that can be freed at once, it would be nice to be able to do this in Tracy, since individual allocations might not necessarily be tracked by the allocator.

wolfpld commented 1 day ago

Added in f4df9013, 872367f0, a91605072.