summaryrefslogtreecommitdiffstats
path: root/src/H5Cpkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <quincey@koziol.cc>2023-04-14 12:55:06 (GMT)
committerGitHub <noreply@github.com>2023-04-14 12:55:06 (GMT)
commit2ad5a25243273b255b4860a2e37a113b01bd3552 (patch)
treefaf74eda88dcc9bac6eff17d2ade1bd514b67440 /src/H5Cpkg.h
parent2cb733ff1b160be46f1f271d18ce1b2ec12363e0 (diff)
downloadhdf5-2ad5a25243273b255b4860a2e37a113b01bd3552.zip
hdf5-2ad5a25243273b255b4860a2e37a113b01bd3552.tar.gz
hdf5-2ad5a25243273b255b4860a2e37a113b01bd3552.tar.bz2
Move cache image macros (#2732)
* Move cache image stats macros to cache image source file * Disable formatting on the macros
Diffstat (limited to 'src/H5Cpkg.h')
-rw-r--r--src/H5Cpkg.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/H5Cpkg.h b/src/H5Cpkg.h
index ddecc91..a0acc66 100644
--- a/src/H5Cpkg.h
+++ b/src/H5Cpkg.h
@@ -596,34 +596,6 @@ if ( ( ( ( (head_ptr) == NULL ) || ( (tail_ptr) == NULL ) ) && \
#define H5C__UPDATE_STATS_FOR_INDEX_SCAN_RESTART(cache_ptr) \
(cache_ptr)->index_scan_restarts++;
-#define H5C__UPDATE_STATS_FOR_CACHE_IMAGE_CREATE(cache_ptr) \
- (cache_ptr)->images_created++;
-
-#define H5C__UPDATE_STATS_FOR_CACHE_IMAGE_READ(cache_ptr) \
-{ \
- /* make sure image len is still good */ \
- HDassert((cache_ptr)->image_len > 0); \
- (cache_ptr)->images_read++; \
-}
-
-#define H5C__UPDATE_STATS_FOR_CACHE_IMAGE_LOAD(cache_ptr) \
-{ \
- /* make sure image len is still good */ \
- HDassert((cache_ptr)->image_len > 0); \
- (cache_ptr)->images_loaded++; \
- (cache_ptr)->last_image_size = (cache_ptr)->image_len; \
-}
-
-#define H5C__UPDATE_STATS_FOR_PREFETCH(cache_ptr, dirty) \
-{ \
- (cache_ptr)->prefetches++; \
- if (dirty) \
- (cache_ptr)->dirty_prefetches++; \
-}
-
-#define H5C__UPDATE_STATS_FOR_PREFETCH_HIT(cache_ptr) \
- (cache_ptr)->prefetch_hits++;
-
#if H5C_COLLECT_CACHE_ENTRY_STATS
#define H5C__RESET_CACHE_ENTRY_STATS(entry_ptr) \
@@ -831,11 +803,6 @@ if ( ( ( ( (head_ptr) == NULL ) || ( (tail_ptr) == NULL ) ) && \
#define H5C__UPDATE_STATS_FOR_SLIST_SCAN_RESTART(cache_ptr)
#define H5C__UPDATE_STATS_FOR_LRU_SCAN_RESTART(cache_ptr)
#define H5C__UPDATE_STATS_FOR_INDEX_SCAN_RESTART(cache_ptr)
-#define H5C__UPDATE_STATS_FOR_CACHE_IMAGE_CREATE(cache_ptr)
-#define H5C__UPDATE_STATS_FOR_CACHE_IMAGE_READ(cache_ptr)
-#define H5C__UPDATE_STATS_FOR_CACHE_IMAGE_LOAD(cache_ptr)
-#define H5C__UPDATE_STATS_FOR_PREFETCH(cache_ptr, dirty)
-#define H5C__UPDATE_STATS_FOR_PREFETCH_HIT(cache_ptr)
#endif /* H5C_COLLECT_CACHE_STATS */