summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-07-06 23:02:32 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-07-06 23:02:32 (GMT)
commitcf419d05ab65b423bc4ce395972e84522ca3eec5 (patch)
tree6f689a9e56f4e251f51aacec02a067b9f8d232a1 /src/H5T.c
parent4d3351f1d777bc3cb891443b6165a87251d4e643 (diff)
downloadhdf5-cf419d05ab65b423bc4ce395972e84522ca3eec5.zip
hdf5-cf419d05ab65b423bc4ce395972e84522ca3eec5.tar.gz
hdf5-cf419d05ab65b423bc4ce395972e84522ca3eec5.tar.bz2
[svn-r454] Changes since 19980702
---------------------- ./src/H5T.c Prints statistics for no-op conversions also. For now, hardware floating point conversions may or may not raise SIGFPE depending on the hardware, operating system, etc. Software conversions never raise SIGFPE and use +Inf or -Inf for overflow. ./test/dtypes.c Catches SIGFPE and causes the test to be skipped. Better test for NaN. ./config/irix5.3 Removed the -U_POSIX_SOURCE because it was removed from the main makefiles. ./bin/trace ./src/H5S.c Fixed a typo that prevented tracing info from being added to new API functions.
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 4fe6078..8026516 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -679,6 +679,7 @@ H5T_term_interface(void)
#ifdef H5T_DEBUG
intn nprint=0;
hsize_t nbytes;
+ H5T_cdata_t *cdata;
#endif
/* Unregister all conversion functions */
@@ -734,6 +735,39 @@ H5T_term_interface(void)
H5T_path_g[i] = NULL;
}
+#ifdef H5T_DEBUG
+ /* Print debugging infor for the `noop' conversion */
+ if (H5T_conv_noop==H5T_find(NULL, NULL, H5T_BKG_NO, &cdata)) {
+ if (cdata->stats->ncalls>0) {
+ if (0==nprint++) {
+ HDfprintf (stderr, "H5T: type conversion statistics "
+ "accumulated over life of library:\n");
+ HDfprintf (stderr, " %-*s %8s/%-5s %8s %8s %8s %15s\n",
+ H5T_NAMELEN-1, "Name", "Elmts", "Calls", "User",
+ "System", "Elapsed", "Bandwidth");
+ HDfprintf (stderr, " %-*s %8s-%-5s %8s %8s %8s %15s\n",
+ H5T_NAMELEN-1, "----", "-----", "-----", "----",
+ "------", "-------", "---------");
+ }
+ nbytes = cdata->stats->nelmts;
+ HDfprintf (stderr,
+ " %-*s %8Hd/%-5d %8.2f %8.2f %8.2f",
+ H5T_NAMELEN-1, "no-op",
+ cdata->stats->nelmts,
+ cdata->stats->ncalls,
+ cdata->stats->timer.utime,
+ cdata->stats->timer.stime,
+ cdata->stats->timer.etime);
+ if (cdata->stats->timer.etime>0) {
+ HDfprintf (stderr, " %15g\n",
+ nbytes / cdata->stats->timer.etime);
+ } else {
+ HDfprintf (stderr, " %15s\n", "Inf");
+ }
+ }
+ }
+#endif
+
/* Clear conversion tables */
H5T_apath_g = 0;
H5T_npath_g = 0;