|
ESPHome 2026.4.0-dev
|
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} |
Inline runtime statistics — eliminates std::map lookup on every loop iteration.
Only present when USE_RUNTIME_STATS is defined (profiling builds).
Definition at line 104 of file component.h.
|
inline |
Definition at line 114 of file component.h.
|
inline |
Definition at line 124 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::period_count {0} |
Definition at line 106 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::period_max_time_us {0} |
Definition at line 108 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::period_time_us {0} |
Definition at line 107 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::total_count {0} |
Definition at line 110 of file component.h.
| uint32_t esphome::ComponentRuntimeStats::total_max_time_us {0} |
Definition at line 112 of file component.h.
| uint64_t esphome::ComponentRuntimeStats::total_time_us {0} |
Definition at line 111 of file component.h.