High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
chore: solving conflict
Luigi Agosti4e9a838a6cfd
diff --cc docs/index.jsonindex ac7b7f21,ac7b7f21..adde4dbf--- a/docs/index.json+++ b/docs/index.json@@@ -24,7 -24,7 +24,8 @@@"guides/cdp-url-shared-chrome.md","guides/headed-mode-guide.md","guides/identifying-instances.md",-- "guides/agent-optimization.md"++ "guides/agent-optimization.md",++ "guides/memory-monitoring.md"],"proposals": ["proposals/default-instance.md",diff --cc internal/handlers/metrics.goindex 9fa28e63,6c5495c2..c8a36065--- a/internal/handlers/metrics.go+++ b/internal/handlers/metrics.go@@@ -24,23 -14,16 +24,26 @@@ func SnapshotMetrics() map[string]anyif total > 0 {avgMs = float64(latencySum) / float64(total)}+ rateMu.Lock()+ bucketHosts := len(rateBuckets)+ rateMu.Unlock()+ // Go runtime metrics+ var memStats runtime.MemStats+ runtime.ReadMemStats(&memStats)+return map[string]any{"requestsTotal": total,"requestsFailed": failed,"avgLatencyMs": avgMs,"rateLimited": atomic.LoadUint64(&metricRateLimited),"staleRefRetries": atomic.LoadUint64(&metricStaleRefRetries),- "rateBucketHosts": RateBucketHostCount(),+ "rateBucketHosts": bucketHosts,+ "goHeapAllocMB": float64(memStats.HeapAlloc) / (1024 * 1024),+ "goHeapSysMB": float64(memStats.HeapSys) / (1024 * 1024),+ "goNumGoroutine": runtime.NumGoroutine(),+ "goHeapObjects": memStats.HeapObjects,+ "goGCPauseNs": memStats.PauseNs[(memStats.NumGC+255)%256], // Last GC pause+ "goNumGC": memStats.NumGC,}}