ESPHome 2025.8.0b2
Loading...
Searching...
No Matches
esphome::runtime_stats::RuntimeStatsCollector Class Reference

#include <runtime_stats.h>

Data Structures

struct  CStrCompare
 

Public Member Functions

 RuntimeStatsCollector ()
 
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)
 
void process_pending_stats (uint32_t current_time)
 

Protected Member Functions

void log_stats_ ()
 
void reset_stats_ ()
 

Protected Attributes

std::map< const char *, ComponentRuntimeStats, CStrComparecomponent_stats_
 
std::map< Component *, const char * > component_names_cache_
 
uint32_t log_interval_
 
uint32_t next_log_time_
 

Detailed Description

Definition at line 91 of file runtime_stats.h.

Constructor & Destructor Documentation

◆ RuntimeStatsCollector()

esphome::runtime_stats::RuntimeStatsCollector::RuntimeStatsCollector ( )

Definition at line 12 of file runtime_stats.cpp.

Member Function Documentation

◆ get_log_interval()

uint32_t esphome::runtime_stats::RuntimeStatsCollector::get_log_interval ( ) const
inline

Definition at line 96 of file runtime_stats.h.

◆ log_stats_()

void esphome::runtime_stats::RuntimeStatsCollector::log_stats_ ( )
protected

Definition at line 37 of file runtime_stats.cpp.

◆ process_pending_stats()

void esphome::runtime_stats::RuntimeStatsCollector::process_pending_stats ( uint32_t current_time)

Definition at line 84 of file runtime_stats.cpp.

◆ record_component_time()

void esphome::runtime_stats::RuntimeStatsCollector::record_component_time ( Component * component,
uint32_t duration_ms,
uint32_t current_time )

Definition at line 16 of file runtime_stats.cpp.

◆ reset_stats_()

void esphome::runtime_stats::RuntimeStatsCollector::reset_stats_ ( )
inlineprotected

Definition at line 106 of file runtime_stats.h.

◆ set_log_interval()

void esphome::runtime_stats::RuntimeStatsCollector::set_log_interval ( uint32_t log_interval)
inline

Definition at line 95 of file runtime_stats.h.

Field Documentation

◆ component_names_cache_

std::map<Component *, const char *> esphome::runtime_stats::RuntimeStatsCollector::component_names_cache_
protected

Definition at line 120 of file runtime_stats.h.

◆ component_stats_

std::map<const char *, ComponentRuntimeStats, CStrCompare> esphome::runtime_stats::RuntimeStatsCollector::component_stats_
protected

Definition at line 119 of file runtime_stats.h.

◆ log_interval_

uint32_t esphome::runtime_stats::RuntimeStatsCollector::log_interval_
protected

Definition at line 121 of file runtime_stats.h.

◆ next_log_time_

uint32_t esphome::runtime_stats::RuntimeStatsCollector::next_log_time_
protected

Definition at line 122 of file runtime_stats.h.


The documentation for this class was generated from the following files: