Documentation ¶
Overview ¶
Example (GorillaMux) ¶
package main import ( "log" "net/http" gomhttp "github.com/rakyll/gom/http" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/debug/_gom", gomhttp.Handler()) log.Println(http.ListenAndServe("localhost:6060", nil)) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler() http.HandlerFunc
Handler returns an http.HandlerFunc that returns pprof profiles and additional metrics. The handler must be accessible through the "/debug/_gom" route in order for gom to display the stats from the debugged program. See the godoc examples for usage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.