diff options
-rw-r--r-- | test/page_buffer.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/test/page_buffer.c b/test/page_buffer.c index db1688d..4526410 100644 --- a/test/page_buffer.c +++ b/test/page_buffer.c @@ -19,8 +19,6 @@ * *************************************************************/ -#include <err.h> - #include "h5test.h" /* @@ -102,33 +100,6 @@ error: return H5I_INVALID_HID; } -static struct timespec -print_elapsed_time(const struct timespec H5_ATTR_UNUSED *lastp, - const char H5_ATTR_UNUSED *fn, int H5_ATTR_UNUSED ln) -{ -#if 0 - uint64_t elapsed_ns; - struct timespec diff, now, last; -#endif - struct timespec now; - - if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) - err(EXIT_FAILURE, "%s: clock_gettime", __func__); - -#if 0 - last = (lastp == NULL) ? now : *lastp; - - timespecsub(&now, &last, &diff); - - elapsed_ns = (uint64_t)diff.tv_sec * (uint64_t)1000000000 + diff.tv_nsec; - - printf("%5" PRIu64 ".%03" PRIu64 " %s.%d\n", - elapsed_ns / 1000000000, (elapsed_ns / 1000000) % 1000, fn, ln); -#endif - - return now; -} - static int swmr_fapl_augment(hid_t fapl, const char *filename, uint32_t max_lag) { @@ -868,7 +839,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) const hsize_t pgbufsz = 10 * pgsz; hsize_t ofs; bool flushed; - struct timespec last; haddr_t addr; haddr_t pressure; @@ -876,7 +846,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) h5_fixname(namebase, orig_fapl, filename, sizeof(filename)); - last = print_elapsed_time(NULL, __func__, __LINE__); if ((fapl = H5Pcopy(orig_fapl)) < 0) TEST_ERROR @@ -899,8 +868,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) if (NULL == (f = (H5F_t *)H5VL_object(file_id))) FAIL_STACK_ERROR; - last = print_elapsed_time(&last, __func__, __LINE__); - /* Allocate a region whose pages we can write to force eviction of * least-recently used pages. */ @@ -929,8 +896,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) odata) < 0) FAIL_STACK_ERROR; - last = print_elapsed_time(&last, __func__, __LINE__); - /* H5Fvfd_swmr_end_tick() processes delayed writes before it increases * the tick number, so only after `max_lag + 1` times through this loop * is a metadata write eligible to be written to the HDF5 file. @@ -943,8 +908,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) H5Fvfd_swmr_end_tick(file_id); } - last = print_elapsed_time(&last, __func__, __LINE__); - flushed = false; /* We are waiting for a single-page metadata buffer to * appear at the VFD layer, but it may reside in the LRU queue. @@ -969,8 +932,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) } } - last = print_elapsed_time(&last, __func__, __LINE__); - if (!vfd_read_each_equals(f, H5FD_MEM_BTREE, addr, num_elements, data, -1)) TEST_ERROR; @@ -982,8 +943,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) sizeof(int) * num_elements, odata) < 0) FAIL_STACK_ERROR; - last = print_elapsed_time(&last, __func__, __LINE__); - /* All elements read through the page buffer should be -2. That is, * no page-buffer entry should shadow the page. */ @@ -991,8 +950,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) -2)) TEST_ERROR; - last = print_elapsed_time(&last, __func__, __LINE__); - /* Force ticks to occur so that H5Fclose() doesn't pause waiting * for them to elapse. */ @@ -1008,8 +965,6 @@ test_spmde_lru_evict_basic(hid_t orig_fapl, const char *env_h5_drvr) HDfree(data); HDfree(odata); - last = print_elapsed_time(&last, __func__, __LINE__); - PASSED(); return 0; |