diff options
| author | Austin Clements <austin@google.com> | 2019-03-11 10:27:11 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2019-03-19 16:01:31 +0000 |
| commit | 834d229eb6cec7d5b2c4b645985921266e645cb1 (patch) | |
| tree | a365881036603d7a424331d24106b791edd294e5 /src/testing/export_test.go | |
| parent | 349e7df2c3d0f9b5429e7c86121499c137faac7e (diff) | |
| download | go-834d229eb6cec7d5b2c4b645985921266e645cb1.tar.xz | |
testing: add B.ReportMetric for custom benchmark metrics
This adds a ReportMetric method to testing.B that lets the user report
custom benchmark metrics and override built-in metrics.
Fixes #26037.
Change-Id: I8236fbde3683fc27bbe45cbbedfd377b435edf64
Reviewed-on: https://go-review.googlesource.com/c/go/+/166717
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/testing/export_test.go')
| -rw-r--r-- | src/testing/export_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testing/export_test.go b/src/testing/export_test.go index 89781b439f..65e5c3dbb8 100644 --- a/src/testing/export_test.go +++ b/src/testing/export_test.go @@ -7,4 +7,5 @@ package testing var ( RoundDown10 = roundDown10 RoundUp = roundUp + PrettyPrint = prettyPrint ) |
