Gets the memory allocation statistics for the library

Procedure:

H5_GET_ALLOC_STATS ( stats )

Signature:

<pre><code class="language-c">herr_t H5get_alloc_stats ( H5_alloc_stats_t *stats )</code></pre>

<pre><code class="language-fortran">Replace this text with the Fortran function signature</code></pre>

Parameters:
H5_alloc_stats_t *statsOUT: 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:
ReleaseChange
1.10.7, 1.12.1C function was introduced in this release.