]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add a -debug-runtime-trace flag
authorRobert Findley <rfindley@google.com>
Mon, 20 Mar 2023 21:30:49 +0000 (17:30 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 21 Mar 2023 21:15:43 +0000 (21:15 +0000)
commit8fce59eab5cb2facfafca89e047b4b43ba44785f
treeb0e6d7e4482e8bd8d12fbcb77640e4612bd39acd
parent3aa7ada60791f8c6c3cb6abd04d446bbc90efdab
cmd/go: add a -debug-runtime-trace flag

The runtime/trace package proved useful for investigating go command
performance, and it makes sense (to me) to make this available for
development behind an undocumented flag, at the cost of ~25KB of binary
size. We could of course futher hide this functionality behind an
experiment or build tag, if necessary.

Updates #59157

Change-Id: I612320920ca935f1ee10bb6a803b7952f36c939b
Reviewed-on: https://go-review.googlesource.com/c/go/+/477896
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/work/build.go
src/cmd/go/main.go