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

NAME

6       malloc_stats - print memory allocation statistics
7

SYNOPSIS

9       #include <malloc.h>
10
11       void malloc_stats(void);
12

DESCRIPTION

14       The malloc_stats() function prints (on standard error) statistics about
15       memory allocated by malloc(3) and related functions.   For  each  arena
16       (allocation  area),  this  function  prints  the total amount of memory
17       allocated and the total number of bytes consumed by in-use allocations.
18       (These two values correspond to the arena and uordblks fields retrieved
19       by mallinfo(3).)  In addition, the function prints the sum of these two
20       statistics  for  all arenas, and the maximum number of blocks and bytes
21       that were ever simultaneously allocated using mmap(2).
22

CONFORMING TO

24       This function is a GNU extension.
25

NOTES

27       More detailed information about memory allocations in  the  main  arena
28       can be obtained using mallinfo(3).
29

SEE ALSO

31       mmap(2), mallinfo(3), malloc(3), malloc_info(3), mallopt(3)
32

COLOPHON

34       This  page  is  part of release 3.53 of the Linux man-pages project.  A
35       description of the project, and information about reporting  bugs,  can
36       be found at http://www.kernel.org/doc/man-pages/.
37
38
39
40Linux                             2012-05-06                   MALLOC_STATS(3)
Impressum