From: Austin Clements Date: Fri, 20 Mar 2020 20:25:03 +0000 (-0400) Subject: [dev.link] cmd/link: improve documentation on -benchmarkprofile X-Git-Tag: go1.15beta1~679^2~53 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fb0c3ee13dd9e10a2cf96e57f7ba45ba0e947a47;p=gostls13.git [dev.link] cmd/link: improve documentation on -benchmarkprofile Change-Id: Ib55017f538b6c4ba805e56491b6a59942fad64ff Reviewed-on: https://go-review.googlesource.com/c/go/+/224618 Run-TryBot: Austin Clements Reviewed-by: Than McIntosh Reviewed-by: Cherry Zhang TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/link/internal/ld/main.go b/src/cmd/link/internal/ld/main.go index c3b7295743..1d2a764db9 100644 --- a/src/cmd/link/internal/ld/main.go +++ b/src/cmd/link/internal/ld/main.go @@ -97,7 +97,7 @@ var ( memprofilerate = flag.Int64("memprofilerate", 0, "set runtime.MemProfileRate to `rate`") benchmarkFlag = flag.String("benchmark", "", "set to 'mem' or 'cpu' to enable phase benchmarking") - benchmarkFileFlag = flag.String("benchmarkprofile", "", "set to enable per-phase pprof profiling") + benchmarkFileFlag = flag.String("benchmarkprofile", "", "emit phase profiles to `base`_phase.{cpu,mem}prof") ) // Main is the main entry point for the linker code.