diff options
author | Matthew Dempsky <mdempsky@google.com> | 2019-10-03 11:48:34 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2019-10-03 20:43:01 +0000 |
commit | 3ad350820df8217b4d05c56923e533a196bace27 (patch) | |
tree | 728f7ec38742be96b8bb7efa0b8f8ecd22c49972 /src/cmd/compile/internal/gc/export.go | |
parent | a1b1ba7daf4d612cb08e98567d809a6f202498ce (diff) | |
download | go-3ad350820df8217b4d05c56923e533a196bace27.tar.gz go-3ad350820df8217b4d05c56923e533a196bace27.zip |
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>
Diffstat (limited to 'src/cmd/compile/internal/gc/export.go')
-rw-r--r-- | src/cmd/compile/internal/gc/export.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/export.go b/src/cmd/compile/internal/gc/export.go index 31e6ab5b6d..44bea2b1fd 100644 --- a/src/cmd/compile/internal/gc/export.go +++ b/src/cmd/compile/internal/gc/export.go @@ -71,7 +71,7 @@ func dumpexport(bout *bio.Writer) { exportf(bout, "\n$$\n") if Debug_export != 0 { - fmt.Printf("export data size = %d bytes\n", size) + fmt.Printf("BenchmarkExportSize:%s 1 %d bytes\n", myimportpath, size) } } |