DOLFINx 0.7.3
DOLFINx C++ interface
|
#include <TimeLogger.h>
Public Member Functions | |
TimeLogger ()=default | |
Constructor. | |
TimeLogger (const TimeLogger &)=delete | |
TimeLogger & | operator= (const TimeLogger &)=delete |
~TimeLogger ()=default | |
Destructor. | |
void | register_timing (std::string task, double wall, double user, double system) |
Register timing (for later summary) | |
Table | timings (std::set< TimingType > type) |
Return a summary of timings and tasks in a Table. | |
void | list_timings (MPI_Comm comm, std::set< TimingType > type, Table::Reduction reduction) |
List a summary of timings and tasks. Reduction type is printed. | |
std::tuple< int, double, double, double > | timing (std::string task) |
Return timing. | |
Timer logging.
void list_timings | ( | MPI_Comm | comm, |
std::set< TimingType > | type, | ||
Table::Reduction | reduction | ||
) |
List a summary of timings and tasks. Reduction type is printed.
comm | MPI Communicator |
type | Set of possible timings: wall, user or system |
reduction | Reduction type (min, max or average) |
std::tuple< int, double, double, double > timing | ( | std::string | task | ) |
Return timing.
[in] | task | The task name to retrieve the timing for |