Go to the previous, next section.
malloc
You can get information about dynamic storage allocation by calling the
mstats
function. This function and its associated data type are
declared in `malloc.h'; they are a GNU extension.
This structure type is used to return information about the dynamic storage allocator. It contains the following members:
size_t bytes_total
malloc
, in bytes.
size_t chunks_used
malloc
requests; see section Efficiency Considerations for malloc
.)
size_t bytes_used
size_t chunks_free
size_t bytes_free
Function: struct mstats mstats (void)
This function returns information about the current dynamic memory usage
in a structure of type struct mstats
.
Go to the previous, next section.