]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: use modern pprof flags in documentation
authorIan Alexander <jitsu@google.com>
Mon, 21 Jul 2025 03:25:57 +0000 (23:25 -0400)
committerIan Alexander <jitsu@google.com>
Tue, 19 Aug 2025 14:14:53 +0000 (07:14 -0700)
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>
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go

index e472f25eea8322bce25ee2bff6d00fde0f233538..5587e01d0ac6f91f012093083807182edb7d8623 100644 (file)
 //
 // Several of the flags control profiling and write an execution profile
 // suitable for "go tool pprof"; run "go tool pprof -h" for more
-// information. The --alloc_space, --alloc_objects, and --show_bytes
-// options of pprof control how the information is presented.
+// information. The -sample_index=alloc_space, -sample_index=alloc_objects,
+// and -show_bytes options of pprof control how the information is presented.
 //
 // The following flags are recognized by the 'go test' command and
 // control the execution of any test:
index 17348a70f77223fdce5c42d28c8364916b8e7456..ef13f6c561611f3ab3cf19430e0c620571fb099b 100644 (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
 suitable for "go tool pprof"; run "go tool pprof -h" for more
-information. The --alloc_space, --alloc_objects, and --show_bytes
-options of pprof control how the information is presented.
+information. The -sample_index=alloc_space, -sample_index=alloc_objects,
+and -show_bytes options of pprof control how the information is presented.
 
 The following flags are recognized by the 'go test' command and
 control the execution of any test: