lib/src/BaseTools/OldTimer.cpp
// This is the Summary for the Managed OldTimers.  If running in
// parallel, i first reduce all of the accumulated times for each
// timer and get the minimum, maximum, and average.  Then i go thru
// the list of timers and make a list of parent timers.  From there i
// can make for loops that step thru the tree and print out the
// results.
This is the Summary for the Managed OldTimers.  If running in
parallel, i first reduce all of the accumulated times for each
timer and get the minimum, maximum, and average.  Then i go thru
the list of timers and make a list of parent timers.  From there i
can make for loops that step thru the tree and print out the
results.
This is the Summary for the Managed OldTimers . If running in parallel i first reduce all of the accumulated times for each timer and get the minimum maximum and average . Then i go thru the list of timers and make a list of parent timers . From there i can make for loops that step thru the tree and print out the results .
void OldTimer::TimerSummary(void)
{
  TimerSummary_(0);
#ifdef PAPI
  PAPI_shutdown();
#endif
  delete TimerList;
}
void OldTimer :: TimerSummary ( void ) { TimerSummary_ ( 0 ) ; #ifdef PAPI PAPI_shutdown ( ) ; #endif delete TimerList ; }
This is the Summary for the Managed OldTimers.
This is the Summary for the Managed OldTimers .
// all ranks go in, but only rank0 writes the file. // all ranks need to clean up // not sure how important this cleanup and shutdown is... //for (int i=0; i<ID_counter; i++) //{ //printf(" cleaning up event %d\n", i); //PAPI_cleanup(); //} // clean up