DOLFINx
0.1.0
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 mpi_comm, std::set< TimingType > type) |
List a summary of timings and tasks. MPI_AVG reduction is printed. More... | |
std::tuple< int, double, double, double > | timing (std::string task) |
Return timing. More... | |
Timer logging.
void TimeLogger::list_timings | ( | MPI_Comm | mpi_comm, |
std::set< TimingType > | type | ||
) |
List a summary of timings and tasks. MPI_AVG
reduction is printed.
mpi_comm | MPI Communicator |
type | Set of possible timings: wall, user or system |
std::tuple< int, double, double, double > TimeLogger::timing | ( | std::string | task | ) |
Return timing.
[in] | task | The task name to retrieve the timing for |