Statsviz is a Go library that provides real-time visualization of Go runtime metrics through an embedded web dashboard. By registering HTTP handlers in an application, developers can instantly expose live charts showing heap usage, garbage collection activity, goroutines, scheduler behavior, and other runtime statistics. The system streams metrics to the browser via WebSocket, enabling near-real-time updates with minimal overhead. statsviz is designed to integrate easily into existing Go services and supports customization such as alternate routes, middleware integration, and user-defined plots. Its visual interface includes filtering controls, time-range selection, and the ability to pause updates for closer inspection. Overall, statsviz is a powerful diagnostic tool for Go developers who need deep runtime observability during performance tuning and debugging.
Features
- Real-time Go runtime visualization dashboard
- WebSocket-based live metric streaming
- Built-in charts for heap, GC, and goroutines
- Easy HTTP handler integration
- Custom user-defined plots support
- Interactive web UI controls