9#include <dolfinx/common/Table.h>
10#include <dolfinx/common/timing.h>
49 void list_timings(MPI_Comm comm, std::set<TimingType> type,
56 std::tuple<int, double, double, double>
timing(std::string task);
61 std::map<std::string, std::tuple<int, double, double, double>> _timings;
This class provides storage and pretty-printing for tables. Example usage:
Definition Table.h:28
Reduction
Types of MPI reduction available for Table, to get the max, min or average values over an MPI_Comm.
Definition Table.h:33
Timer logging.
Definition TimeLogger.h:23
~TimeLogger()=default
Destructor.
TimeLogger()=default
Constructor.
std::tuple< int, double, double, double > timing(std::string task)
Return timing.
Definition TimeLogger.cpp:92
void list_timings(MPI_Comm comm, std::set< TimingType > type, Table::Reduction reduction)
List a summary of timings and tasks. Reduction type is printed.
Definition TimeLogger.cpp:42
Table timings(std::set< TimingType > type)
Return a summary of timings and tasks in a Table.
Definition TimeLogger.cpp:55
void register_timing(std::string task, double wall, double user, double system)
Register timing (for later summary)
Definition TimeLogger.cpp:17
Miscellaneous classes, functions and types.
Definition dolfinx_common.h:8