heap tracker: display object type or a symbol from backtrace?
#3,092 opened on Jun 7, 2025
Repository metrics
- Stars
- (5,820 stars)
- PR merge metrics
- (Avg merge 3d 12h) (32 merged PRs in 30d)
Description
Currently the track-heap enable shows us only that a malloc/calloc/free etc. happened and which size/address it was passed or returned, but it would be awesome to show where in the program the allocation or deallocation happened - or - for what kind of object.
This would need to be smart somehow so it is useful, as we probably don't want to display the whole backtrace for each malloc/calloc/free etc. but just one symbol - like "SomeObject::SomeMethod".
This could also work e.g. only if sources are available or maybe the user should pass some regex for the backtrace and we should only show a symbol that matches?