93 using time_type = std::chrono::high_resolution_clock::time_point;
170 using m_perf_map = std::map<std::string, std::shared_ptr<MPerfType>>;
The MPerf class Class which hosts individual time tracking instances.
Definition: m_perf.h:128
std::string get_entity_names()
get_entity_names Print the names of all registered entities
MPerf(const std::string &name)
bool StartEntity(const std::string &entity_name)
StartEntity Starts/Adds an entity to be tracked.
bool name_set_
name_set_ Indicator if a name for the tracker was set
Definition: m_perf.h:185
std::string name_
name_ Name of the performance tracking instance
Definition: m_perf.h:180
bool StopEntity(const std::string &entity_name)
StopEntity Stops an entity that was tracked.
std::map< std::string, std::shared_ptr< MPerfType > > m_perf_map
m_perf_map Type of the map which hosts time tracking elements
Definition: m_perf.h:170
std::string PrintStats()
PrintStats Prints the stats of all entities.
bool verbose_
verbose_ Increased console output
Definition: m_perf.h:190
m_perf_map data_
data_ Map of all time tracked elements associated by map key
Definition: m_perf.h:175
std::string get_stats_as_csv(const std::string &entity_name)
get_stats_as_csv Provide stats of all entities in form of a csv string
The MPerfType class Class of performance entry types.
Definition: m_perf.h:28
double get_mean()
get_mean Returns the mean of the duration times of the current instance
std::vector< time_type > start_
start_ Vector of tracked starting times
Definition: m_perf.h:103
double get_std()
get_std Returns the std of the mean for the duration times of the current instance
bool AddStop()
AddStop Adds stop time to time buffer of the current instance.
time_type get_time()
get_time Get current time
double get_max()
get_max Returns the max of the duration times of the current instance
std::vector< double > get_start_times()
get_start_times Returns a full vector of all start times
std::string name_
name_ Name of the current tracking instance
Definition: m_perf.h:98
std::vector< double > get_stop_times()
get_stop_times Returns a full vector of all stop times
std::chrono::high_resolution_clock::time_point time_type
time_type Type which the timer isntance returns
Definition: m_perf.h:93
bool is_running_
is_running_ Indicator if the current instance is already tracking a duration
Definition: m_perf.h:113
std::vector< time_type > stop_
stop_ Vector of tracked stopping times
Definition: m_perf.h:108
bool AddStart()
AddStart Adds start time to time buffer of the current instance.
std::vector< double > get_diff_vec()
get_diff_vec Returns a vector with durations for all entries
double get_min()
get_min Returns the min of the duration times of the current instance
int get_size()
get_size Gets the size of all start stop time combinations