Improve debug logging for high frequency updates

This commit is contained in:
2026-04-28 18:01:28 +02:00
parent 9a7d2ef1b3
commit e4e31967f0

View File

@@ -249,12 +249,15 @@ function maybeWarnForHighFrequencyUpdates(
}; };
}); });
console.groupCollapsed("[update-loop-trace] high frequency updates", { const warningTitle =
triggerLabel, `[update-loop-trace] high frequency updates ` +
triggerLabelCount, `trigger=${triggerLabel} ` +
totalCount: traceEvents.length, `triggerCount=${triggerLabelCount} ` +
windowMs: TRACE_WINDOW_MS `totalCount=${traceEvents.length} ` +
}); `windowMs=${TRACE_WINDOW_MS}`;
console.groupCollapsed(warningTitle);
console.warn(warningTitle);
console.table(rows); console.table(rows);
console.log( console.log(
"Last payloads", "Last payloads",