mapmalloc is a tool to help debug and profile dynamic memory allocation in C and C++ program. It operates in batch mode (not interactive). You run your application with the mapmalloc utility and a log is produced showing every memory allocation operation. For each allocation, you get the address allocated and the size requested. You also get the complete backtrace (using only addresses). For each free operation you get the address freed. Using postmortem tool such as maplog, you can extract various informations: leaks, allocation per source directory and various statistics.