diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-07-30 16:38:21 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-07-30 16:38:21 (GMT) |
commit | c7b935a9acd629929296c1ccdd05214cc5c01e5d (patch) | |
tree | 07d051649f88b4d65f98316182e6191b038fc4c7 /src/H5Fistore.c | |
parent | a34534c9b8321f4de9fadd836be926497f7461d4 (diff) | |
download | hdf5-c7b935a9acd629929296c1ccdd05214cc5c01e5d.zip hdf5-c7b935a9acd629929296c1ccdd05214cc5c01e5d.tar.gz hdf5-c7b935a9acd629929296c1ccdd05214cc5c01e5d.tar.bz2 |
[svn-r547] Changes since 19980729
----------------------
./MANIFEST
./test/Makefile.in
./test/mtime.c [NEW]
Test for the modification time message.
./src/H5AC.c
./src/H5Fistore.c
Turned off printing of statistics on H5close() if H5AC_DEBUG
isn't defined.
Diffstat (limited to 'src/H5Fistore.c')
-rw-r--r-- | src/H5Fistore.c | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/src/H5Fistore.c b/src/H5Fistore.c index 262a58f..a8b321b 100644 --- a/src/H5Fistore.c +++ b/src/H5Fistore.c @@ -1688,21 +1688,32 @@ H5F_istore_stats (H5F_t *f, hbool_t headers) "-----", "----", "------", "--------", "-----", "-------"); } - if (rdcc->nhits>0 || rdcc->nmisses>0) { - miss_rate = 100.0 * rdcc->nmisses / - (rdcc->nhits + rdcc->nmisses); - } else { - miss_rate = 0.0; - } - if (miss_rate > 100) { - sprintf(ascii, "%7d%%", (int) (miss_rate + 0.5)); - } else { - sprintf(ascii, "%7.2f%%", miss_rate); +#ifndef H5AC_DEBUG + /* + * If we're not debugging the H5AC layer then print these statistics only + * if we printed the headers that go with them. + */ + if (headers) { +#endif + if (rdcc->nhits>0 || rdcc->nmisses>0) { + miss_rate = 100.0 * rdcc->nmisses / + (rdcc->nhits + rdcc->nmisses); + } else { + miss_rate = 0.0; + } + if (miss_rate > 100) { + sprintf(ascii, "%7d%%", (int) (miss_rate + 0.5)); + } else { + sprintf(ascii, "%7.2f%%", miss_rate); + } + + fprintf(stderr, " %-18s %8u %8u %7s %8d+%-9ld\n", + "raw data chunks", rdcc->nhits, rdcc->nmisses, ascii, + rdcc->ninits, (long)(rdcc->nflushes)-(long)(rdcc->ninits)); +#ifndef H5AC_DEBUG } - - fprintf(stderr, " %-18s %8u %8u %7s %8d+%-9ld\n", - "raw data chunks", rdcc->nhits, rdcc->nmisses, ascii, - rdcc->ninits, (long)(rdcc->nflushes)-(long)(rdcc->ninits)); +#endif + FUNC_LEAVE (SUCCEED); } @@ -1823,7 +1834,9 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout, uint8 *chunk=NULL; intn idx_hint=0; size_t chunk_size; +#ifdef AKC H5F_istore_ud1_t udata; +#endif FUNC_ENTER(H5F_istore_allocate, FAIL); #ifdef AKC |