Documentation ¶
Overview ¶
Provides a single pane of glass across all runtime metrics. pprofrec records pprof lookups, runtime.MemStats and gopsutil`metrics, and exposes them via http endpoints to inspect and troubleshoot an application in an idiomatic, fast and boring way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stream ¶
func Stream(opts StreamOpts) func(w http.ResponseWriter, r *http.Request)
Stream streams runtime metrics at a given frequency as a html table.
func Window ¶
func Window(ctx context.Context, opts WindowOpts) func(w http.ResponseWriter, r *http.Request)
Window records runtime metrics at a given frequency within a given window and responds with a html table that lists the recorded metrics.
Types ¶
type StreamOpts ¶
type StreamOpts struct { // Frequency defines at what frequency metrics are recorded and streamed. Frequency time.Duration }
StreamOpts configures the Stream handler.
Click to show internal directories.
Click to hide internal directories.