5#ifdef USE_RUNTIME_STATS
18namespace runtime_stats {
20static const char *
const TAG =
"runtime_stats";
108 it.second.reset_period_stats();
uint32_t get_period_max_time_ms() const
uint32_t period_max_time_ms_
uint32_t get_total_time_ms() const
uint32_t get_total_max_time_ms() const
float get_period_avg_time_ms() const
uint32_t total_max_time_ms_
void reset_period_stats()
void record_time(uint32_t duration_ms)
float get_total_avg_time_ms() const
uint32_t get_period_time_ms() const
uint32_t get_period_count() const
uint32_t get_total_count() const
void set_log_interval(uint32_t log_interval)
uint32_t get_log_interval() const
void record_component_time(Component *component, uint32_t duration_ms, uint32_t current_time)
std::map< Component *, ComponentRuntimeStats > component_stats_
void process_pending_stats(uint32_t current_time)
Providing packet encoding functions for exchanging data with a remote host.
runtime_stats::RuntimeStatsCollector * global_runtime_stats
bool operator>(const ComponentStatPair &other) const
const ComponentRuntimeStats * stats