diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-06-19 10:06:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-06-19 10:06:10 (GMT) |
commit | 9db9e82cd1c4e35c6e64fbb2da5eb1db95a0fb55 (patch) | |
tree | df8aaa72b1094bcfacc740a8d33b255c84e1d34e /src/H5HFprivate.h | |
parent | 54e2de04d3b7a0359c80cc995f94b63123f4a4da (diff) | |
download | hdf5-9db9e82cd1c4e35c6e64fbb2da5eb1db95a0fb55.zip hdf5-9db9e82cd1c4e35c6e64fbb2da5eb1db95a0fb55.tar.gz hdf5-9db9e82cd1c4e35c6e64fbb2da5eb1db95a0fb55.tar.bz2 |
[svn-r12424] Purpose:
Code checkpoint
Description:
Add in more new features for the fractal heap code, mostly bringing in
more ability for deleting objects (which isn't completely working yet).
Also, checkpoint free space manager code, which is essentially complete
(although it needs some more work after the metadata cache has some additional
features)
Platforms tested:
FreeBSD 4.11 (sleipnir)
Linux 2.4 (chicago)
h5committest
Diffstat (limited to 'src/H5HFprivate.h')
-rw-r--r-- | src/H5HFprivate.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/H5HFprivate.h b/src/H5HFprivate.h index bb562de..b9ae0f4 100644 --- a/src/H5HFprivate.h +++ b/src/H5HFprivate.h @@ -67,6 +67,17 @@ typedef struct H5HF_create_t { /* (i.e. max. size of object to manage) */ } H5HF_create_t; +/* Fractal heap metadata statistics info */ +typedef struct H5HF_stat_t { + hsize_t total_size; /* Total size of heap allocated (man & std) */ + hsize_t nobjs; /* Number of objects in heap */ + hsize_t man_size; /* Total size of managed space in heap */ + hsize_t man_alloc_size; /* Total size of managed space allocated in heap */ + hsize_t man_iter_off; /* Offset of "new block" iterator in managed heap space */ + hsize_t man_free_space; /* Free space within managed heap */ + hsize_t std_size; /* Total size of standalone space in heap */ +} H5HF_stat_t; + /* Fractal heap info (forward decl - defined in H5HFpkg.h) */ typedef struct H5HF_t H5HF_t; @@ -90,6 +101,9 @@ H5_DLL herr_t H5HF_read(H5HF_t *fh, hid_t dxpl_id, const void *id, H5_DLL herr_t H5HF_remove(H5HF_t *fh, hid_t dxpl_id, const void *id); H5_DLL herr_t H5HF_close(H5HF_t *fh, hid_t dxpl_id); +/* Statistics routines */ +H5_DLL herr_t H5HF_stat_info(const H5HF_t *fh, H5HF_stat_t *stats); + /* Debugging routines */ #ifdef H5HF_DEBUGGING H5_DLL herr_t H5HF_sects_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, |