From 058424603e6ec5eb7079a3870db541ac052300ab Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sat, 3 Feb 2007 21:11:00 +0000 Subject: CarpetLib: Improve timers Implement a second timer based on Intel's rdtsc instruction, which is much faster and much more accurate than MPI_Wtime. Place the timer classes into the CarpetLib namespace. Create a TimerSet class. Make the Timer class automatically register all timers with a singleton object, removing all global variables. darcs-hash:20070203211128-dae7b-42765e79446eda6a2337ba22cd390869055c555a.gz --- Carpet/CarpetLib/param.ccl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetLib/param.ccl') diff --git a/Carpet/CarpetLib/param.ccl b/Carpet/CarpetLib/param.ccl index a3000fe74..a81275309 100644 --- a/Carpet/CarpetLib/param.ccl +++ b/Carpet/CarpetLib/param.ccl @@ -54,7 +54,18 @@ STRING timestat_file "File name in which timestat output is collected (because s { "^$" :: "empty filename: no file output" "^.+$" :: "file name" -} "carpetlib-time-statistics" +} "carpetlib-timing-statistics" + +KEYWORD timestat_timer "Timer for timing statistics" STEERABLE=recover +{ + "MPI_Wtime" :: "MPI_Wtime (expensive; uses system call)" + "rdtsc" :: "Intel rdtsc instruction (exists only on Intel CPUs)" + "none" :: "don't measure time" +} "MPI_Wtime" + +BOOLEAN timestat_disable "Disable timing statistics" STEERABLE=always +{ +} "no" -- cgit v1.2.3