1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[runtime_stats] Combine log statements to reduce loop blocking (#12954)

This commit is contained in:
J. Nick Koston
2026-01-04 16:10:51 -10:00
committed by GitHub
parent 9f7925c1d5
commit ab0e15e4bb

View File

@@ -27,8 +27,10 @@ void RuntimeStatsCollector::record_component_time(Component *component, uint32_t
}
void RuntimeStatsCollector::log_stats_() {
ESP_LOGI(TAG, "Component Runtime Statistics");
ESP_LOGI(TAG, "Period stats (last %" PRIu32 "ms):", this->log_interval_);
ESP_LOGI(TAG,
"Component Runtime Statistics\n"
"Period stats (last %" PRIu32 "ms):",
this->log_interval_);
// First collect stats we want to display
std::vector<ComponentStatPair> stats_to_display;