NAME
mtrace, muntrace - malloc debugging
SYNOPSIS
#include <mcheck.h>
void mtrace(void);
void muntrace(void);
DESCRIPTION
The function
R mtrace ()
installs handlers for
malloc(3),
realloc(3)
and
free(3).
The function
R muntrace ()
disables these handlers.
The environment variable
MALLOC_TRACE
defines a file where
R mtrace ()
writes its output.
This file must be writable to the user or
R mtrace ()
will do nothing.
If the file is not empty it will be truncated.
CONFORMING TO
These are GNU extensions.
NOTES
The output of
R mtrace ()
will be ASCII but not in a friendly format.
So glibc comes with a perl-script called mtrace to make sense of it.
SEE ALSO