]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.link] cmd/link: improve documentation on -benchmarkprofile
authorAustin Clements <austin@google.com>
Fri, 20 Mar 2020 20:25:03 +0000 (16:25 -0400)
committerAustin Clements <austin@google.com>
Sat, 21 Mar 2020 13:48:36 +0000 (13:48 +0000)
Change-Id: Ib55017f538b6c4ba805e56491b6a59942fad64ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/224618
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/link/internal/ld/main.go

index c3b729574328386e7ce7f68280ad50f78eb30e63..1d2a764db908d01667c7d4b79c24a39bf975c880 100644 (file)
@@ -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.