diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-07-08 21:24:55 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-07-08 21:24:55 (GMT) |
commit | 185ec14f360efb80eb4638cc3745834a141280e1 (patch) | |
tree | 1355143d703d710f6c1a9fc43f120c1b89f9db7f /src/H5public.h | |
parent | 50ef7ff9962051c767aae7ad229b558b7586c59b (diff) | |
download | hdf5-185ec14f360efb80eb4638cc3745834a141280e1.zip hdf5-185ec14f360efb80eb4638cc3745834a141280e1.tar.gz hdf5-185ec14f360efb80eb4638cc3745834a141280e1.tar.bz2 |
Normalization of H5MM and H5FL with develop. Adds the new
stats calls.
Diffstat (limited to 'src/H5public.h')
-rw-r--r-- | src/H5public.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h index fe4e33c..871c360 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -328,6 +328,19 @@ typedef struct H5_ih_info_t { hsize_t heap_size; } H5_ih_info_t; +/* + * 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; + /* Functions in H5.c */ H5_DLL herr_t H5open(void); H5_DLL herr_t H5close(void); @@ -336,6 +349,9 @@ H5_DLL herr_t H5garbage_collect(void); H5_DLL herr_t H5set_free_list_limits (int reg_global_lim, int reg_list_lim, int arr_global_lim, int arr_list_lim, int blk_global_lim, int blk_list_lim); +H5_DLL herr_t H5get_free_list_sizes(size_t *reg_size, size_t *arr_size, + size_t *blk_size, size_t *fac_size); +H5_DLL herr_t H5get_alloc_stats(H5_alloc_stats_t *stats); H5_DLL herr_t H5get_libversion(unsigned *majnum, unsigned *minnum, unsigned *relnum); H5_DLL herr_t H5check_version(unsigned majnum, unsigned minnum, |