summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-07-09 18:00:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-07-09 18:00:43 (GMT)
commit839de1e367efcc7d56cc71ff96a5e7cee8507f16 (patch)
treea4f4a5a2eb979517f42580fda9c011b3f535389e /src/H5AC.c
parent2bbf08c3fc35ca5d60a7618c73069af3e7476e85 (diff)
downloadhdf5-839de1e367efcc7d56cc71ff96a5e7cee8507f16.zip
hdf5-839de1e367efcc7d56cc71ff96a5e7cee8507f16.tar.gz
hdf5-839de1e367efcc7d56cc71ff96a5e7cee8507f16.tar.bz2
[svn-r7189] Purpose:
Code cleanup Description: Break some of the "debugging" routines into their own module, so they aren't pulled into every executable, which certainly isn't going to use them. Platforms tested: h5committested
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 41661af..b2de4f6 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -1788,11 +1788,12 @@ done:
FUNC_LEAVE_NOAPI(ret_value);
}
+#ifdef H5AC_DEBUG
/*-------------------------------------------------------------------------
- * Function: H5AC_debug
+ * Function: H5AC_stats
*
- * Purpose: Prints debugging info about the cache.
+ * Purpose: Prints statistics about the cache.
*
* Return: Non-negative on success/Negative on failure
*
@@ -1804,19 +1805,16 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5AC_debug(H5F_t UNUSED *f)
+H5AC_stats(H5F_t UNUSED *f)
{
-#ifdef H5AC_DEBUG
H5AC_subid_t i;
char s[32], ascii[32];
H5AC_t *cache = f->shared->cache;
double miss_rate;
-#endif /* H5AC_DEBUG */
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOAPI(H5AC_debug, FAIL);
+ FUNC_ENTER_NOAPI(H5AC_stats, FAIL);
-#ifdef H5AC_DEBUG
if (H5DEBUG(AC)) {
fprintf(H5DEBUG(AC), "H5AC: meta data cache statistics for file %s\n",
f->name);
@@ -1870,9 +1868,9 @@ H5AC_debug(H5F_t UNUSED *f)
(long)(cache->diagnostics[i].ninits)));
}
}
-#endif /* H5AC_DEBUG */
done:
FUNC_LEAVE_NOAPI(ret_value);
}
+#endif /* H5AC_DEBUG */