From fb0c3ee13dd9e10a2cf96e57f7ba45ba0e947a47 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 20 Mar 2020 16:25:03 -0400 Subject: [PATCH] [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 --- src/cmd/link/internal/ld/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.51.0