1 .\" Copyright (c) 2012 by Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH MALLOC_STATS 3 2021-03-22 "Linux man-pages (unreleased)"
7 malloc_stats \- print memory allocation statistics
10 .RI ( libc ", " \-lc )
13 .B #include <malloc.h>
15 .B void malloc_stats(void);
20 function prints (on standard error) statistics about memory allocated by
22 and related functions.
23 For each arena (allocation area), this function prints
24 the total amount of memory allocated
25 and the total number of bytes consumed by in-use allocations.
26 (These two values correspond to the
33 the function prints the sum of these two statistics for all arenas,
34 and the maximum number of blocks and bytes that were ever simultaneously
38 .\" Available already in glibc 2.0, possibly earlier
40 For an explanation of the terms used in this section, see
48 Interface Attribute Value
51 T} Thread safety MT-Safe
57 This function is a GNU extension.
59 More detailed information about memory allocations in the main arena