From 744702ccf63f8f1febe3990c5ba4fd337bbbea07 Mon Sep 17 00:00:00 2001
From: Kpa-clawbot <259247574+Kpa-clawbot@users.noreply.github.com>
Date: Fri, 27 Mar 2026 11:49:10 -0700
Subject: [PATCH] feat(perf): show Go Runtime stats instead of Event Loop on Go
backend
When engine=go, the perf page now renders Go-specific runtime stats
(goroutines, GC collections, GC pause times, heap breakdown, CPUs)
instead of the misleading Node.js Event Loop metrics. Falls back to
the existing Node UI when engine is not 'go' or goRuntime data is
missing. Includes color-coded GC pause thresholds.
fixes #153
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
public/index.html | 54 ++++-----
public/perf.js | 42 +++++--
test-perf-go-runtime.js | 253 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 310 insertions(+), 39 deletions(-)
create mode 100644 test-perf-go-runtime.js
diff --git a/public/index.html b/public/index.html
index 2f5a6d7a..c7efb652 100644
--- a/public/index.html
+++ b/public/index.html
@@ -22,9 +22,9 @@
-
-
-
+
+
+
@@ -81,29 +81,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+