table_printer.h Source File
|
CPP API
|
table_printer.h
Go to the documentation of this file.
138 void print(const std::list<TimerRegistration>& timer_register, std::ostream& out = std::cout) override
145 // note that col_width is offset by 1 relative to table, as it uses index 0 for the first value,
210 // map rows from thread 0 first, so the order of timers (mostly) corresponds to their call order
Definition: table_printer.h:120
std::string m_time_format
Format string used to print elapsed time and other timing statistics.
Definition: table_printer.h:271
void print(const std::list< TimerRegistration > &timer_register, std::ostream &out=std::cout) override
Print a table with timing results (aggregated over threads).
Definition: table_printer.h:138
static std::tuple< details::Table< double >, bool, size_t, double > create_table(const std::list< TimerRegistration > &timer_register)
The first part of the print function, separated as a somewhat independent step.
Definition: table_printer.h:205
void set_time_format(std::string format_string)
Change the format_string used for printed time values.
Definition: table_printer.h:126
Table used by TablePrinter with named rows and columns. With some extra work, this could be reused el...
Definition: table_printer.h:47
void add_row(const std::string &name, const std::vector< T > &values)
Definition: table_printer.h:66
std::vector< std::string > m_column_names
Definition: table_printer.h:113
std::string & get_row_name(size_t row)
Definition: table_printer.h:84
T & operator()(size_t row, size_t col)
Definition: table_printer.h:77
std::string & get_col_name(size_t col)
Definition: table_printer.h:90
Table(const std::string &name, const std::vector< std::string > &column_names, const std::vector< std::string > &row_names={})
Definition: table_printer.h:54
void add_row(const std::string &name)
Definition: table_printer.h:72
static min_max_return_type< ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 >, ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > >::type min(const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &a, const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &b)
Definition: ad.hpp:2599
static min_max_return_type< ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 >, ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > >::type max(const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &a, const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &b)
Definition: ad.hpp:2596
int rank(Comm comm)
Return the rank of the calling process on the given communicator.
Definition: miompi.cpp:63
std::string qualified_name(const std::string &name, const std::string &scope)
If scope is empty, returns name.
Definition: registration.h:48
double time_in_seconds(DurationType duration)
Convert a duration to a (floating point) number of seconds.
Definition: definitions.cpp:41
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
auto max(const Eigen::MatrixBase< A > &a, B &&b)
coefficient wise maximum of two matrices.
Definition: eigen_util.h:171
Struct with a virtual print method to allow exchanging how TimerRegistrations are evaluated.
Definition: registration.h:54
Definition: table_printer.h:48
Generated by