wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
9.87k stars 658 forks source link

Memory: correctly filter active allocations in call stack tree #724

Closed idbrii closed 7 months ago

idbrii commented 7 months ago

Fix #723: Memory: active allocations are incorrectly displayed in call stack tree

The range we were looking for was wrong (should be Active instead of Inactive), but I also reworked to make the comparison clearer.

Test

Using the repro app from the bug:

  1. Click "Free + Allocate" once
  2. Call stack tree shows 2 entries under "Active allocations", 1 active allocation, 0 inactive allocations in the call stack tree.
  3. Click "Free + Allocate" several times
  4. Call stack tree shows 1 KB of active allocations and many KB of inactive.