From 681f9ce8ac52c4ba431539a515ecb7f2ab72eca0 Mon Sep 17 00:00:00 2001 From: LE Manh Cuong Date: Sun, 31 Mar 2019 14:21:38 +0700 Subject: [PATCH] cmd/compilebench: update document Add document for "-go" and "-short" flag, which are listed in output of "compilebench help". Also reformat "-pkg" document to align with the rest. Change-Id: I8ce80d8e02a9cf2b94aa099aa34e53412210d61b Reviewed-on: https://go-review.googlesource.com/c/tools/+/170237 Reviewed-by: Josh Bleecher Snyder --- cmd/compilebench/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/compilebench/main.go b/cmd/compilebench/main.go index 915c8adbba..88900fc00e 100644 --- a/cmd/compilebench/main.go +++ b/cmd/compilebench/main.go @@ -28,6 +28,9 @@ // -cpuprofile file // Write a CPU profile of the compiler to file. // +// -go path +// Path to "go" command (default "go"). +// // -memprofile file // Write a memory profile of the compiler to file. // @@ -37,12 +40,15 @@ // -obj // Report object file statistics. // -// -pkg +// -pkg pkg // Benchmark compiling a single package. // // -run regexp // Only run benchmarks with names matching regexp. // +// -short +// Skip long-running benchmarks. +// // Although -cpuprofile and -memprofile are intended to write a // combined profile for all the executed benchmarks to file, // today they write only the profile for the last benchmark executed.