Manual Section... (3) - page: mtrace
NAMEmtrace, muntrace - malloc debugging
DESCRIPTIONThe 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.
CONFORMING TOThese are GNU extensions.
NOTESThe output of 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 ALSOmalloc(3), malloc_hook(3)
COLOPHONThis page is part of release 3.24 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.
This document was created by man2html, using the manual pages.
Time: 15:26:47 GMT, June 11, 2010