(sigil http diagnostics)
(sigil http diagnostics) - Server Diagnostics for Long-Running Processes
Provides runtime diagnostics for HTTP servers including:
- Goroutine (task) count from the async scheduler
- Open file descriptor count (Linux /proc/self/fd)
- Memory usage (Linux /proc/self/status VmRSS)
- SSE broadcast subscriber counts
- Server uptime
Exposes diagnostics via a /_diagnostics HTTP endpoint and SIGUSR1 signal handler for on-demand stderr dumps.
Exports
diagnosticsprocedureConstruct a diagnostics struct.
diagnostics?procedureTest if a value is a diagnostics struct.
diagnostics-start-timeprocedureGet the start-time field of a diagnostics struct.
diagnostics-broadcastsprocedureGet the broadcasts field of a diagnostics struct.
set-diagnostics-broadcasts!procedureSet the broadcasts field of a diagnostics struct.