diff options
| author | harsimran1 <kaur.harsimran301@gmail.com> | 2019-03-23 14:51:05 +0100 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-10-21 18:43:12 +0000 |
| commit | 3b2eb699a06eb2eb9afdf5fbf2326f87e9deca97 (patch) | |
| tree | d05f7a84b357097e09bcc37656541a162dc0b320 /src/net/http | |
| parent | ff4e0e42d8f662529c3e6ac5af6591d31805ae2f (diff) | |
| download | go-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')
| -rw-r--r-- | src/net/http/pprof/pprof.go | 3 |
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 |
