aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@d0051148-8e13-4bef-be1d-f6c572c85f9f>2011-03-30 14:11:43 +0000
committereschnett <eschnett@d0051148-8e13-4bef-be1d-f6c572c85f9f>2011-03-30 14:11:43 +0000
commit2ccd7dd110be6b9742798549c104ecf948a8988b (patch)
tree1dbc960e7714e9038ae1f6050cc87814cc261a28
parent0aa7280b8ba45d08a716567590d874d683bc401b (diff)
Now that TimerReport has several options for outputting timer data,
the old-style table of schedule timers on standard output is often no longer needed, and takes up a lot of space in standard output. The attached patch provides a boolean parameter, TimerReport::output_schedule_timers=yes/no, defaulting to "yes" to maintain the current default behaviour. Users who want to use the "top timers" output instead now have the option to disable the scheduled function timer table. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/TimerReport/trunk@38 d0051148-8e13-4bef-be1d-f6c572c85f9f
-rw-r--r--param.ccl4
-rw-r--r--src/Output.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/param.ccl b/param.ccl
index 35a3937..95980ac 100644
--- a/param.ccl
+++ b/param.ccl
@@ -29,6 +29,10 @@ BOOLEAN next "On next iteration" STEERABLE=ALWAYS
{
} "no"
+BOOLEAN output_schedule_timers "Output the schedule timers in a formatted tabular format" STEERABLE=ALWAYS
+{
+} "yes"
+
BOOLEAN output_all_timers "Output one file per processor containing all the Cactus timers" STEERABLE=ALWAYS
{
} "no"
diff --git a/src/Output.c b/src/Output.c
index f0c51b8..c69f415 100644
--- a/src/Output.c
+++ b/src/Output.c
@@ -160,7 +160,10 @@ static void Output (CCTK_ARGUMENTS)
DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
- PrintTimes(CCTK_PASS_CTOC);
+ if (output_schedule_timers)
+ {
+ PrintTimes(CCTK_PASS_CTOC);
+ }
if (output_all_timers)
{