From: harsimran1 Date: Sat, 23 Mar 2019 13:51:05 +0000 (+0100) Subject: net/http/pprof: explicitly mention DefaultServeMux for default handlers X-Git-Tag: go1.14beta1~669 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3b2eb699a06eb2eb9afdf5fbf2326f87e9deca97;p=gostls13.git net/http/pprof: explicitly mention DefaultServeMux for default handlers Change-Id: I224db88f3809001802e004077ce856f0e3347c67 Reviewed-on: https://go-review.googlesource.com/c/go/+/169017 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/http/pprof/pprof.go b/src/net/http/pprof/pprof.go index 35b3285a08..a237f58609 100644 --- a/src/net/http/pprof/pprof.go +++ b/src/net/http/pprof/pprof.go @@ -20,6 +20,9 @@ // log.Println(http.ListenAndServe("localhost:6060", nil)) // }() // +// If you are not using DefaultServeMux, you will have to register handlers +// with the mux you are using. +// // Then use the pprof tool to look at the heap profile: // // go tool pprof http://localhost:6060/debug/pprof/heap