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.