From: Matthew Dempsky Date: Thu, 3 Oct 2019 18:48:34 +0000 (-0700) Subject: cmd/compile: change size diagnostic to use benchmark format X-Git-Tag: go1.14beta1~879 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3ad350820df8217b4d05c56923e533a196bace27;p=gostls13.git 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 --- 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) } }