![]() |
PRISMS-PF Manual
|
Timer class for PRISMS-PF. More...
#include <timer.h>
Classes | |
| struct | Scope |
| Timer scope guard. More... | |
Public Member Functions | |
| Timer ()=default | |
| Constructor. | |
| ~Timer () | |
| Destructor. | |
| Timer (const Timer &)=delete | |
| Timer & | operator= (const Timer &)=delete |
| Timer (Timer &&)=delete | |
| Timer & | operator= (Timer &&)=delete |
Static Public Member Functions | |
| static void | start_section (const char *name) |
| Start a new timer section. | |
| static void | end_section (const char *name) |
| End the timer section. | |
| static dealii::TimerOutput & | serial_timer () |
| deal.II timer for the 0th MPI process | |
| static dealii::TimerOutput & | parallel_timer () |
| deal.II timer for parallel MPI process | |
| static void | print_summary () |
| Print a sorted summary of the timed sections. | |
Timer class for PRISMS-PF.
This class keeps track of nested timing sections so we can print a structured summary at the end of the simulation.
Fortunately, Caliper handles this nicely (and more!) or us. deal.II doesn't do this so we have to keep track of a few additional objects. The logical way to represent this is with a tree node structure.
|
default |
Constructor.
| Timer::~Timer | ( | ) |
Destructor.
Calls print_summary upon destruction.
|
delete |
|
static |
deal.II timer for parallel MPI process
|
static |
Print a sorted summary of the timed sections.
|
static |
deal.II timer for the 0th MPI process