Quick tip: massif tool of Valgrind
A little tip that I discovered some time ago: the massive
tool from valgrind
. It can address cases
where we have a program that eats up too much memory unnecessarily, but since it does cleanups correctly at the end, we don't
see anything with standard leak tools like valgrind
or asan
.
Massif
This is where the massif
tool from valgrind
comes in as well as the massif-visualizer
visualization tool. This
tool will allow you to regularly take snapshots of memory allocations, and to see the callstacks of location in our programs
that make these allocations.