Skip to content

Commit 3ad3508

Browse files
committed
cmd/compile: change size diagnostic to use benchmark format
Makes it easier to run go build -a -gcflags=-d=export std |& grep ^BenchmarkExportSize and get useful output for feeding into benchstat. Change-Id: I2b52e8f5ff33b7ccb6c25b18e464513344bd9ad9 Reviewed-on: https://go-review.googlesource.com/c/go/+/198698 Reviewed-by: Robert Griesemer <gri@golang.org>
1 parent a1b1ba7 commit 3ad3508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/gc/export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func dumpexport(bout *bio.Writer) {
7171
exportf(bout, "\n$$\n")
7272

7373
if Debug_export != 0 {
74-
fmt.Printf("export data size = %d bytes\n", size)
74+
fmt.Printf("BenchmarkExportSize:%s 1 %d bytes\n", myimportpath, size)
7575
}
7676
}
7777

0 commit comments

Comments
 (0)