aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
authorHana (Hyang-Ah) Kim <hyangah@gmail.com>2020-04-28 12:11:14 -0400
committerEmmanuel Odeke <emm.odeke@gmail.com>2020-05-09 04:46:25 +0000
commit0242d461c9293d50f429fc9bdc41a02510b86995 (patch)
tree73c51b5d0468d7d9303da23de4a91b60f3468b8c /src/net/http
parentb9c9cbf9267cc9b19649e8bdbf679946d40d9a23 (diff)
downloadgo-0242d461c9293d50f429fc9bdc41a02510b86995.tar.xz
net/http/pprof: document the trace endpoint is for execution trace
Update google/pprof#529 Change-Id: Iec3b343a487b399ada3a6f73c120b5f7ed8938be Reviewed-on: https://go-review.googlesource.com/c/go/+/230538 Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/pprof/pprof.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/http/pprof/pprof.go b/src/net/http/pprof/pprof.go
index 4fd19eb539..81df0448e9 100644
--- a/src/net/http/pprof/pprof.go
+++ b/src/net/http/pprof/pprof.go
@@ -36,15 +36,17 @@
//
// go tool pprof http://localhost:6060/debug/pprof/block
//
-// Or to collect a 5-second execution trace:
-//
-// 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
//
+// The package also exports a handler that serves execution trace data
+// for the "go tool trace" command. To collect a 5-second execution trace:
+//
+// wget -O trace.out http://localhost:6060/debug/pprof/trace?seconds=5
+// go tool trace trace.out
+//
// To view all available profiles, open http://localhost:6060/debug/pprof/
// in your browser.
//