fix(diagnostics): bound diagnostic buffers

This commit is contained in:
Vincent Koc
2026-05-22 11:15:46 +08:00
parent c21ca883b0
commit bdcaac06c6
10 changed files with 291 additions and 10 deletions

View File

@@ -211,6 +211,9 @@ function formatStabilityEvent(record: DiagnosticStabilityEventRecord): string {
record.bytes !== undefined ? `bytes=${formatBytes(record.bytes)}` : "",
record.limitBytes !== undefined ? `limit=${formatBytes(record.limitBytes)}` : "",
record.queueDepth !== undefined ? `queueDepth=${record.queueDepth}` : "",
record.queueLength !== undefined ? `queueLength=${record.queueLength}` : "",
record.droppedEvents !== undefined ? `dropped=${record.droppedEvents}` : "",
record.maxQueueLength !== undefined ? `maxQueue=${record.maxQueueLength}` : "",
record.queued !== undefined ? `queued=${record.queued}` : "",
record.memory ? `rss=${formatBytes(record.memory.rssBytes)}` : "",
record.memory ? `heap=${formatBytes(record.memory.heapUsedBytes)}` : "",