mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 18:15:47 +00:00
Go's /api/health was missing the eventLoop object that Node.js provides. The perf.js frontend reads health.eventLoop.p95Ms which crashed with 'Cannot read properties of undefined' when served by the Go server. Adds eventLoop field using GC pause data from runtime.MemStats.PauseNs (last 256 pauses) to compute p50Ms, p95Ms, p99Ms, currentLagMs, maxLagMs — matching the Node.js response shape exactly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>