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 #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>
This commit is contained in:
Ian Alexander 2025-07-20 23:25:57 -04:00
parent 5a56d8848b
commit 07ee3bfc63
2 changed files with 4 additions and 4 deletions

View file

@ -3231,8 +3231,8 @@
// //
// Several of the flags control profiling and write an execution profile // Several of the flags control profiling and write an execution profile
// suitable for "go tool pprof"; run "go tool pprof -h" for more // suitable for "go tool pprof"; run "go tool pprof -h" for more
// information. The --alloc_space, --alloc_objects, and --show_bytes // information. The -sample_index=alloc_space, -sample_index=alloc_objects,
// options of pprof control how the information is presented. // and -show_bytes options of pprof control how the information is presented.
// //
// The following flags are recognized by the 'go test' command and // The following flags are recognized by the 'go test' command and
// control the execution of any test: // control the execution of any test:

View file

@ -186,8 +186,8 @@ and flags that apply to the resulting test binary.
Several of the flags control profiling and write an execution profile Several of the flags control profiling and write an execution profile
suitable for "go tool pprof"; run "go tool pprof -h" for more suitable for "go tool pprof"; run "go tool pprof -h" for more
information. The --alloc_space, --alloc_objects, and --show_bytes information. The -sample_index=alloc_space, -sample_index=alloc_objects,
options of pprof control how the information is presented. and -show_bytes options of pprof control how the information is presented.
The following flags are recognized by the 'go test' command and The following flags are recognized by the 'go test' command and
control the execution of any test: control the execution of any test: