From: Dan Peterson Date: Wed, 6 Apr 2016 14:18:55 +0000 (-0300) Subject: net/http/pprof: note calling runtime.SetBlockProfileRate is required for block profile X-Git-Tag: go1.7beta1~866 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b2fc9f1c23453e16ab08d411ed0e439212d6e5e6;p=gostls13.git net/http/pprof: note calling runtime.SetBlockProfileRate is required for block profile Fixes #15076 Change-Id: I5ce8f6253245d8cc1f862a1bf618775f557f955d Reviewed-on: https://go-review.googlesource.com/21610 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/http/pprof/pprof.go b/src/net/http/pprof/pprof.go index 2357d8ed1e..44afa2d8d8 100644 --- a/src/net/http/pprof/pprof.go +++ b/src/net/http/pprof/pprof.go @@ -30,7 +30,8 @@ // // go tool pprof http://localhost:6060/debug/pprof/profile // -// Or to look at the goroutine blocking profile: +// Or to look at the goroutine blocking profile, after calling +// runtime.SetBlockProfileRate in your program: // // go tool pprof http://localhost:6060/debug/pprof/block //