From: Ian Alexander Date: Mon, 21 Jul 2025 03:25:57 +0000 (-0400) Subject: cmd/go: use modern pprof flags in documentation X-Git-Tag: go1.26rc1~1063 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=07ee3bfc631cd6593c10b8715fc58b05d844f4ba;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index e472f25eea..5587e01d0a 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -3231,8 +3231,8 @@ // // 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: diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index 17348a70f7..ef13f6c561 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -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: