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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user