Documentation ¶
Overview ¶
Package profiling provides an HTTP handler that can be registered to a router to expose pprof profiling data.
For an example implementation, see the pkg/httpserver/config.go file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PProfHandler ¶
func PProfHandler(w http.ResponseWriter, r *http.Request)
PProfHandler exposes pprof profiling data. It is intended to be registered to a router. The option parameter is the pprof profile to be exposed. If option is empty, the pprof index page is shown. If option is "cmdline", "profile", "symbol" or "trace", the respective pprof handler is called. For any other value of option, the pprof.Handler is called with the option as argument.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.