summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorHana (Hyang-Ah) Kim <hyangah@gmail.com>2017-04-28 09:11:50 -0400
committerHyang-Ah Hana Kim <hyangah@gmail.com>2017-06-26 21:50:12 +0000
commit145557c23a4597ac08abccc9e33604513d0a4af9 (patch)
treee21eff661166bd87ec4869a01dc5901d5c9d7b03 /src/net
parent0d33a896d9eeacd96035c3b22f3698c8f51a09aa (diff)
downloadgo-git-145557c23a4597ac08abccc9e33604513d0a4af9.tar.gz
net/http/pprof: mention mutex profile in doc
mutex profile requires explicit calls to runtime.SetMutexProfileFraction to enable/disable profiling (like block profile). It is worth mentioning in the doc. Change-Id: I2b8d654be9f5c6bc49fc802b7708c4c552fea9b2 Reviewed-on: https://go-review.googlesource.com/42070 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/http/pprof/pprof.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/http/pprof/pprof.go b/src/net/http/pprof/pprof.go
index da153447df..12c7599ab0 100644
--- a/src/net/http/pprof/pprof.go
+++ b/src/net/http/pprof/pprof.go
@@ -37,6 +37,11 @@
//
// wget http://localhost:6060/debug/pprof/trace?seconds=5
//
+// Or to look at the holders of contended mutexes, after calling
+// runtime.SetMutexProfileFraction in your program:
+//
+// go tool pprof http://localhost:6060/debug/pprof/mutex
+//
// To view all available profiles, open http://localhost:6060/debug/pprof/
// in your browser.
//