From 2ccd7dd110be6b9742798549c104ecf948a8988b Mon Sep 17 00:00:00 2001 From: eschnett Date: Wed, 30 Mar 2011 14:11:43 +0000 Subject: 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 --- param.ccl | 4 ++++ src/Output.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3