tools/cmd/goimports
Michael Stapelberg a863a4fcd3 cmd/goimports: fix -trace flag: flush after stopping trace
Without this change, the created trace files cannot be read by "go tool trace":

2023/12/25 09:51:02 Parsing trace...
failed to parse trace: no EvFrequency event

Change-Id: I59964875c8e821262db2cc6bbc82b2be385e1618
Reviewed-on: https://go-review.googlesource.com/c/tools/+/553555
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Michael Stapelberg <stapelberg@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-01-03 12:29:34 +00:00
..
doc.go cmd: gofmt 2022-04-12 17:38:38 +00:00
goimports.go all: replace all usages of golang.org/x/sys/execabs with os/exec 2023-11-09 20:10:26 +00:00
goimports_gc.go cmd/goimports: fix -trace flag: flush after stopping trace 2024-01-03 12:29:34 +00:00
goimports_not_gc.go all: go fmt ./... 2021-02-20 03:28:52 +00:00