mirror of
https://github.com/golang/go
synced 2024-09-30 04:34:33 -06:00
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>
This commit is contained in:
parent
ff4e0e42d8
commit
3b2eb699a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user