mtrace(3) - Linux man page
Name
mtrace, muntrace - malloc debuggingSynopsis
#include <mcheck.h>void mtrace(void);
void muntrace(void);
Description
The function mtrace() installs handlers for malloc(3), realloc(3) and free(3). The function muntrace() disables these handlers.The environment variable MALLOC_TRACE defines a file where mtrace() writes its output. This file must be writable to the user or mtrace() will do nothing. If the file is not empty it will be truncated.
