Skip to content

Commit 3b2eb69

Browse files
Harsimran1bradfitz
authored andcommitted
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 <[email protected]>
1 parent ff4e0e4 commit 3b2eb69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/net/http/pprof/pprof.go

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
// log.Println(http.ListenAndServe("localhost:6060", nil))
2121
// }()
2222
//
23+
// If you are not using DefaultServeMux, you will have to register handlers
24+
// with the mux you are using.
25+
//
2326
// Then use the pprof tool to look at the heap profile:
2427
//
2528
// go tool pprof http://localhost:6060/debug/pprof/heap

0 commit comments

Comments
 (0)