From 3b2eb699a06eb2eb9afdf5fbf2326f87e9deca97 Mon Sep 17 00:00:00 2001 From: harsimran1 Date: Sat, 23 Mar 2019 14:51:05 +0100 Subject: [PATCH] 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 --- src/net/http/pprof/pprof.go | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.0