diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-03-14 09:57:09 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-03-14 09:57:09 -0400 |
commit | e5643ac74ec9c32b4003f8c4fb90c8b44c527995 (patch) | |
tree | a2bd8551fd3e6309fda8fe78b3022e5708066146 /Carpet/Carpet | |
parent | b4c64637c5373aaf7cec12a3ecd43e480a1aa318 (diff) |
Carpet: Output timer tree at shutdown
Diffstat (limited to 'Carpet/Carpet')
-rw-r--r-- | Carpet/Carpet/src/Shutdown.cc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Carpet/Carpet/src/Shutdown.cc b/Carpet/Carpet/src/Shutdown.cc index f3da0b086..ca2123fba 100644 --- a/Carpet/Carpet/src/Shutdown.cc +++ b/Carpet/Carpet/src/Shutdown.cc @@ -55,7 +55,7 @@ namespace Carpet { } LEAVE_LEVEL_MODE; } END_REVERSE_MGLEVEL_LOOP; } // for rl - + // Stop all timers before shutdown, since timers may rely on data // structures which are destroyed during shutdown int const ierr = CCTK_TimerStop ("CCTK total time"); @@ -79,12 +79,18 @@ namespace Carpet { } END_REVERSE_MGLEVEL_LOOP; - main_timer_tree.root->stop(); - - if (output_xml_timer_tree) + + if (output_timer_tree_every > 0) { + TimerNode *et = main_timer_tree.root->getChildTimer("Evolve"); + et->print(cout, et->getTime(), 0, timer_tree_threshold_percentage, timer_tree_output_precision); + mode_timer_tree.root->print(cout, mode_timer_tree.root->getTime(), 0, timer_tree_threshold_percentage, timer_tree_output_precision); + } + + if (output_xml_timer_tree) { main_timer_tree.root->outputXML(out_dir,CCTK_MyProc (cctkGH)); - + } + // earlier checkpoint before finalising MPI Waypoint ("Done with shutdown"); |