aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/pprof/pprof.go
diff options
context:
space:
mode:
authorharsimran1 <kaur.harsimran301@gmail.com>2019-03-23 14:51:05 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2019-10-21 18:43:12 +0000
commit3b2eb699a06eb2eb9afdf5fbf2326f87e9deca97 (patch)
treed05f7a84b357097e09bcc37656541a162dc0b320 /src/net/http/pprof/pprof.go
parentff4e0e42d8f662529c3e6ac5af6591d31805ae2f (diff)
downloadgo-3b2eb699a06eb2eb9afdf5fbf2326f87e9deca97.tar.xz
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 <bradfitz@golang.org>
Diffstat (limited to 'src/net/http/pprof/pprof.go')
-rw-r--r--src/net/http/pprof/pprof.go3
1 files changed, 3 insertions, 0 deletions
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