sudo apt-get install libdmalloc-dev libdmalloc5 dmalloc -l ./log -i 100 high > dms source ./dms ... #include <dmalloc.h> ... gcc -o k k.c -ldmalloc ... ./k vim log ...