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

#include <runtime_stats.h>

Public Member Functions

 ComponentRuntimeStats ()
 
void record_time (uint32_t duration_ms)
 
void reset_period_stats ()
 
uint32_t get_period_count () const
 
uint32_t get_period_time_ms () const
 
uint32_t get_period_max_time_ms () const
 
float get_period_avg_time_ms () const
 
uint32_t get_total_count () const
 
uint32_t get_total_time_ms () const
 
uint32_t get_total_max_time_ms () const
 
float get_total_avg_time_ms () const
 

Protected Attributes

uint32_t period_count_
 
uint32_t period_time_ms_
 
uint32_t period_max_time_ms_
 
uint32_t total_count_
 
uint32_t total_time_ms_
 
uint32_t total_max_time_ms_
 

Detailed Description

Definition at line 22 of file runtime_stats.h.

Constructor & Destructor Documentation

◆ ComponentRuntimeStats()

esphome::runtime_stats::ComponentRuntimeStats::ComponentRuntimeStats ( )
inline

Definition at line 24 of file runtime_stats.h.

Member Function Documentation

◆ get_period_avg_time_ms()

float esphome::runtime_stats::ComponentRuntimeStats::get_period_avg_time_ms ( ) const
inline

Definition at line 56 of file runtime_stats.h.

◆ get_period_count()

uint32_t esphome::runtime_stats::ComponentRuntimeStats::get_period_count ( ) const
inline

Definition at line 53 of file runtime_stats.h.

◆ get_period_max_time_ms()

uint32_t esphome::runtime_stats::ComponentRuntimeStats::get_period_max_time_ms ( ) const
inline

Definition at line 55 of file runtime_stats.h.

◆ get_period_time_ms()

uint32_t esphome::runtime_stats::ComponentRuntimeStats::get_period_time_ms ( ) const
inline

Definition at line 54 of file runtime_stats.h.

◆ get_total_avg_time_ms()

float esphome::runtime_stats::ComponentRuntimeStats::get_total_avg_time_ms ( ) const
inline

Definition at line 64 of file runtime_stats.h.

◆ get_total_count()

uint32_t esphome::runtime_stats::ComponentRuntimeStats::get_total_count ( ) const
inline

Definition at line 61 of file runtime_stats.h.

◆ get_total_max_time_ms()

uint32_t esphome::runtime_stats::ComponentRuntimeStats::get_total_max_time_ms ( ) const
inline

Definition at line 63 of file runtime_stats.h.

◆ get_total_time_ms()

uint32_t esphome::runtime_stats::ComponentRuntimeStats::get_total_time_ms ( ) const
inline

Definition at line 62 of file runtime_stats.h.

◆ record_time()

void esphome::runtime_stats::ComponentRuntimeStats::record_time ( uint32_t duration_ms)
inline

Definition at line 32 of file runtime_stats.h.

◆ reset_period_stats()

void esphome::runtime_stats::ComponentRuntimeStats::reset_period_stats ( )
inline

Definition at line 46 of file runtime_stats.h.

Field Documentation

◆ period_count_

uint32_t esphome::runtime_stats::ComponentRuntimeStats::period_count_
protected

Definition at line 70 of file runtime_stats.h.

◆ period_max_time_ms_

uint32_t esphome::runtime_stats::ComponentRuntimeStats::period_max_time_ms_
protected

Definition at line 72 of file runtime_stats.h.

◆ period_time_ms_

uint32_t esphome::runtime_stats::ComponentRuntimeStats::period_time_ms_
protected

Definition at line 71 of file runtime_stats.h.

◆ total_count_

uint32_t esphome::runtime_stats::ComponentRuntimeStats::total_count_
protected

Definition at line 75 of file runtime_stats.h.

◆ total_max_time_ms_

uint32_t esphome::runtime_stats::ComponentRuntimeStats::total_max_time_ms_
protected

Definition at line 77 of file runtime_stats.h.

◆ total_time_ms_

uint32_t esphome::runtime_stats::ComponentRuntimeStats::total_time_ms_
protected

Definition at line 76 of file runtime_stats.h.


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