9 #include <dolfinx/common/Table.h>
10 #include <dolfinx/common/timing.h>
48 void list_timings(MPI_Comm comm, std::set<TimingType> type);
54 std::tuple<int, double, double, double>
timing(std::string task);
59 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:29
Timer logging.
Definition: TimeLogger.h:23
~TimeLogger()=default
Destructor.
void list_timings(MPI_Comm comm, std::set< TimingType > type)
List a summary of timings and tasks. MPI_AVG reduction is printed.
Definition: TimeLogger.cpp:41
std::tuple< int, double, double, double > timing(std::string task)
Return timing.
Definition: TimeLogger.cpp:90
TimeLogger()=default
Constructor.
void register_timing(std::string task, double wall, double user, double system)
Register timing (for later summary)
Definition: TimeLogger.cpp:16
Table timings(std::set< TimingType > type)
Return a summary of timings and tasks in a Table.
Definition: TimeLogger.cpp:53
Miscellaneous classes, functions and types.