mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 16:18:41 +00:00
[core] Reduce runtime_stats measurement overhead (#15359)
This commit is contained in:
@@ -519,13 +519,6 @@ WarnIfComponentBlockingGuard::warn_blocking(Component *component, uint32_t block
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_RUNTIME_STATS
|
||||
void WarnIfComponentBlockingGuard::record_runtime_stats_() {
|
||||
uint32_t duration_us = micros() - this->started_us_;
|
||||
this->component_->runtime_stats_.record_time(duration_us);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_SETUP_PRIORITY_OVERRIDE
|
||||
void clear_setup_priority_overrides() {
|
||||
// Free the setup priority map completely
|
||||
|
||||
Reference in New Issue
Block a user