|
ESPHome 2026.4.1
|
Inline runtime statistics — eliminates std::map lookup on every loop iteration. More...
#include <component.h>
Public Member Functions | |
| void | record_time (uint32_t duration_us) |
| void | reset_period () |
Data Fields | |
| uint32_t | period_count {0} |
| uint32_t | period_time_us {0} |
| uint32_t | period_max_time_us {0} |
| uint32_t | total_count {0} |
| uint64_t | total_time_us {0} |
| uint32_t | total_max_time_us {0} |
Static Public Attributes | |
| static uint64_t | global_recorded_us = 0 |
Inline runtime statistics — eliminates std::map lookup on every loop iteration.
Only present when USE_RUNTIME_STATS is defined (profiling builds).
Definition at line 109 of file component.h.
|
inline |
Definition at line 126 of file component.h.
|
inline |
Definition at line 137 of file component.h.
|
static |
Definition at line 124 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::period_count {0} |
Definition at line 111 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::period_max_time_us {0} |
Definition at line 113 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::period_time_us {0} |
Definition at line 112 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::total_count {0} |
Definition at line 115 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::total_max_time_us {0} |
Definition at line 117 of file component.h.
| uint64_t esphome::ComponentRuntimeStats::total_time_us {0} |
Definition at line 116 of file component.h.