Gets the memory allocation statistics for the library
Procedure:
H5_GET_ALLOC_STATS ( stats )
Signature:
herr_t H5get_alloc_stats ( H5_alloc_stats_t *stats )
Parameters:
H5_alloc_stats_t *stats | OUT: Memory allocation statistics |
Description:
H5_GET_ALLOC_STATS gets the memory allocation statistics for the library, if the --enable-memory-alloc-sanity-check
option was given when building the library. Applications can check whether this option was enabled detecting if the H5_MEMORY_ALLOC_SANITY_CHECK macro is defined. This option is enabled by default for debug builds of the library and disabled by default for non-debug builds. If the option is not enabled, all the values returned with be 0. These statistics are global for the entire library, but do not include allocations from chunked dataset I/O filters or non-native VOL connectors.
Returns:
Success: non-negative
Failure: negative
Example:
History:
Release | Change |
---|
1.10.7, 1.12.1 | C function was introduced in this release. |
--- Last Modified: September 15, 2020 | 02:39 PM