Re:Show HN: I wrote a tool in Rust for tracking all allocati...
by stevefan1999 on Wednesday February 15, 2023 @11:45AM
(#34806527)
If this project can trace memory allocation/deallocation and their call stacks in real time -- this would be super useful, because we can statistically profile which function is always allocating without proper free in a certain time frame (when the memory is supposed to be freed), because valgrind only tells you there are memory leaks but not where is the leak exactly.
[ Parent
| on HN ]
Re:Show HN: I wrote a tool in Rust for tracking all allocati...
by mkimball on Wednesday February 15, 2023 @12:17PM
(#34807163)
Depends on what you mean by "real time". My method of crawling the stack impacts execution speed of the app you are tracing. I intended to do future work to minimize that impact.
With allocscope, you do get a callstack for the allocations which leak, though.
Re:Show HN: I wrote a tool in Rust for tracking all allocati...
by stevefan1999 on Wednesday February 15, 2023 @09:09PM
(#34814053)
For real time I mean it will not severely slows down a game from 120fps to 40fps, this kind of real time