wolfpld / tracy

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

More info on what a problematic TracyFree or TracyAlloc caused. #739

Open mcourteaux opened 7 months ago

mcourteaux commented 7 months ago

I'm instrumenting my application with TracyAllocS and TracyFreeS, which looks great and is already very insightful! :smile:

However, I'm having a problem somewhere, and Tracy reports: image

While I understand the message, I don't know where in my code the problem is. Yet, I believe the Tracy Client actually has the information of the stack available of where the attempted TracyFreeS happened. Even in case one uese TracyFree (i.e., without the S suffix and no callstack), still just the point in the code where the TracyFree is would also be helpful.

Reporting this info would be very useful, as I don't see any way to debug this, as the Tracy server running in my application doesn't do any checking, and happily continues execution.


TLDR: So, in summary, what I believe is possible and would be very helpful:

Potentially the "memory pool" can be indicated as well, in case somebody is choosing a memory pool ID dynamically at runtime (and thus the source location alone doesn't reveal which one).

slomp commented 6 months ago

Related: https://github.com/wolfpld/tracy/issues/572