summaryrefslogtreecommitdiffstats
path: root/src/H5public.h
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-11-03 23:30:08 (GMT)
committerGitHub <noreply@github.com>2022-11-03 23:30:08 (GMT)
commit018f093c096cca8b3965eb17afa01f5637317995 (patch)
tree6bd8c321decf7e544dd2dbf86976c51dc8407e92 /src/H5public.h
parent40a0e3c7b5b30912ddbe4cf58f289575d63fef12 (diff)
downloadhdf5-018f093c096cca8b3965eb17afa01f5637317995.zip
hdf5-018f093c096cca8b3965eb17afa01f5637317995.tar.gz
hdf5-018f093c096cca8b3965eb17afa01f5637317995.tar.bz2
Removes the memory allocation sanity checks feature (#2218)
* Removes the memory allocation sanity checks feature * Committing clang-format changes * Removes zero size checks for H5MM_(c|m)alloc() * Explicitly return NULL when size == 0 in H5allocate_memory() * Committing clang-format changes * Format fix Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5public.h')
-rw-r--r--src/H5public.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/H5public.h b/src/H5public.h
index 745cd18..345191c 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -397,19 +397,6 @@ typedef struct H5O_token_t {
//! <!-- [H5O_token_t_snip] -->
/**
- * Allocation statistics info struct
- */
-typedef struct H5_alloc_stats_t {
- unsigned long long total_alloc_bytes; /**< Running count of total # of bytes allocated */
- size_t curr_alloc_bytes; /**< Current # of bytes allocated */
- size_t peak_alloc_bytes; /**< Peak # of bytes allocated */
- size_t max_block_size; /**< Largest block allocated */
- size_t total_alloc_blocks_count; /**< Running count of total # of blocks allocated */
- size_t curr_alloc_blocks_count; /**< Current # of blocks allocated */
- size_t peak_alloc_blocks_count; /**< Peak # of blocks allocated */
-} H5_alloc_stats_t;
-
-/**
* Library shutdown callback, used by H5atclose().
*/
typedef void (*H5_atclose_func_t)(void *ctx);
@@ -591,27 +578,6 @@ H5_DLL herr_t H5set_free_list_limits(int reg_global_lim, int reg_list_lim, int a
H5_DLL herr_t H5get_free_list_sizes(size_t *reg_size, size_t *arr_size, size_t *blk_size, size_t *fac_size);
/**
* \ingroup H5
- * \brief Gets the memory allocation statistics for the library
- *
- * \param[out] stats Memory allocation statistics
- * \return \herr_t
- *
- * \details H5get_alloc_stats() gets the memory allocation statistics for the
- * library, if the \c --enable-memory-alloc-sanity-check option was
- * given when building the library. Applications can check whether
- * this option was enabled detecting if the
- * \c 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.
- *
- * \since 1.10.7
- */
-H5_DLL herr_t H5get_alloc_stats(H5_alloc_stats_t *stats);
-/**
- * \ingroup H5
* \brief Returns the HDF library release number
*
* \param[out] majnum The major version number of the library