1MTRACE(3)                  Linux Programmer's Manual                 MTRACE(3)
2
3
4

NAME

6       mtrace, muntrace - malloc debugging
7

SYNOPSIS

9       #include <mcheck.h>
10
11       void mtrace(void);
12
13       void muntrace(void);
14

DESCRIPTION

16       The  function  mtrace()  installs  handlers for malloc(), realloc() and
17       free().  The function muntrace() disables these handlers.
18       The environment variable MALLOC_TRACE defines  a  file  where  mtrace()
19       writes  its output.  This file must be writable to the user or mtrace()
20       will do nothing.  If the file is not empty it will be truncated.
21

NOTE

23       The output of mtrace() will be ASCII but not in a friendly format.   So
24       glibc comes with a perl-script called mtrace to make sense of it.
25

CONFORMING TO

27       These are GNU extensions.
28

SEE ALSO

30       malloc(3), malloc_hook(3)
31
32
33
34GNU                               2002-07-20                         MTRACE(3)
Impressum