Documentation
¶
Overview ¶
Package fgprof provides Fx wiring to expose fgprof profiling over HTTP.
This package integrates fgprof into the debug HTTP server setup so you can collect wall-clock based profiles to diagnose CPU, blocking, and scheduling issues.
It is registered by the root debug package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register installs the fgprof handler on mux.
The handler is registered at "/debug/fgprof" (namespaced by service name via http.Pattern) and serves fgprof's wall-clock based profiling UI/data. This is useful for diagnosing CPU usage as well as time spent blocked or waiting in scheduling.
This registration is intended to be composed into the go-service debug server wiring.
Types ¶
This section is empty.