From 3ad350820df8217b4d05c56923e533a196bace27 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Thu, 3 Oct 2019 11:48:34 -0700 Subject: [PATCH] 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 --- src/cmd/compile/internal/gc/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } -- 2.50.0