Ask HN: Memory leaks in C/C++ Application debugger tool?
I have a application which is written in C/C++, when I try to run Valgrind or sanitizer for detecting mem leaks it shows less leaks. But memory is keep growing when the application is running for longer time.
(
3 comments
| on HN
)
You can do pretty much anything at that point (e.g., you can track memory allocations and deallocations at only the specific levels you care about)…
you can try https://gperftools.github.io/gperftools/heapprofile.html setup HEAP_PROFILE_TIME_INTERVAL and look at the reports to see which code lines keep allocating memory...