]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/pprof: use "curl" instead of "wget" in usage example
authorLeon Klingele <git@leonklingele.de>
Fri, 1 Oct 2021 09:05:13 +0000 (09:05 +0000)
committerIan Lance Taylor <iant@golang.org>
Sat, 2 Oct 2021 00:31:26 +0000 (00:31 +0000)
The "curl" binary is already used at several other places inside
the code base, whereas this was the only occurrence of "wget".

Change-Id: I2b9c5c353d08b3ba8289819b4a602c51f1ebd593
GitHub-Last-Rev: abf94855223c4ceac08dd0d18c5a2b97d1abcca9
GitHub-Pull-Request: golang/go#48718
Reviewed-on: https://go-review.googlesource.com/c/go/+/353401
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/net/http/pprof/pprof.go

index 888ea35c9a6c5229c50c946926f17a256c8da59c..dc855c8a6da9a04acde7784ed8638ff1dc4f12fc 100644 (file)
@@ -44,7 +44,7 @@
 // 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
+//     curl -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/