Merge branch 'loop_runtime_stats' into integration

This commit is contained in:
J. Nick Koston
2025-06-14 19:43:45 -05:00
6 changed files with 232 additions and 0 deletions
+3
View File
@@ -268,6 +268,9 @@ uint32_t WarnIfComponentBlockingGuard::finish() {
uint32_t curr_time = millis();
uint32_t blocking_time = curr_time - this->started_;
// Record component runtime stats
runtime_stats.record_component_time(this->component_, blocking_time, curr_time);
bool should_warn;
if (this->component_ != nullptr) {
should_warn = this->component_->should_warn_of_blocking(blocking_time);