wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 691 forks source link

Function to free an entire named pool #915

Closed HybridEidolon closed 1 month ago

HybridEidolon commented 1 month 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 month ago

Added in f4df9013, 872367f0, a91605072.

HybridEidolon commented 1 month ago

Wow, that was a heck of a turnaround. Thanks! My group will use this as soon as it's in a stable release.