From b2fc9f1c23453e16ab08d411ed0e439212d6e5e6 Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Wed, 6 Apr 2016 11:18:55 -0300 Subject: [PATCH] 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 --- src/net/http/pprof/pprof.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 //