Skip to content

Commit 07ee3bf

Browse files
committed
cmd/go: use modern pprof flags in documentation
This change updates our mentions of pprof flags so that we now refer to the modern flag names instead of the legacy ones. Fixes golang#74336. Change-Id: Ie8fbc7407178219b84ce5171fa5e94621129267e Reviewed-on: https://go-review.googlesource.com/c/go/+/689095 Reviewed-by: Michael Matloob <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
1 parent 5a56d88 commit 07ee3bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cmd/go/alldocs.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/test/test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ and flags that apply to the resulting test binary.
186186
187187
Several of the flags control profiling and write an execution profile
188188
suitable for "go tool pprof"; run "go tool pprof -h" for more
189-
information. The --alloc_space, --alloc_objects, and --show_bytes
190-
options of pprof control how the information is presented.
189+
information. The -sample_index=alloc_space, -sample_index=alloc_objects,
190+
and -show_bytes options of pprof control how the information is presented.
191191
192192
The following flags are recognized by the 'go test' command and
193193
control the execution of any test:

0 commit comments

Comments
 (0)