]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/pprof: explicitly mention DefaultServeMux for default handlers
authorharsimran1 <kaur.harsimran301@gmail.com>
Sat, 23 Mar 2019 13:51:05 +0000 (14:51 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 21 Oct 2019 18:43:12 +0000 (18:43 +0000)
Change-Id: I224db88f3809001802e004077ce856f0e3347c67
Reviewed-on: https://go-review.googlesource.com/c/go/+/169017
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/pprof/pprof.go

index 35b3285a0801cf9b580a9dec7eb6aa7f231f0c91..a237f58609c1c3e747ad11658cd7071371ae2831 100644 (file)
@@ -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