aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/doc.go
diff options
context:
space:
mode:
authorMichael Schaller <misch@google.com>2021-03-12 12:12:48 +0000
committerRobert Griesemer <gri@golang.org>2021-03-13 00:32:00 +0000
commit7b47f9a5f2092dcbc1546304f1f1b739883fa4c4 (patch)
tree2a90ae059f6ada753bd3eb27844c597e6bdeeaf1 /src/cmd/compile/doc.go
parent3eebc26700c8e9ccb7d9962ce1c7a02d605aba66 (diff)
downloadgo-7b47f9a5f2092dcbc1546304f1f1b739883fa4c4.tar.gz
go-7b47f9a5f2092dcbc1546304f1f1b739883fa4c4.zip
cmd/compile: mention that -m can be increased or given multiple times
-m can be increased or it can be given up to 4 times to increase the verbosity of the printed optimization decisions: https://github.com/golang/go/search?q=LowerM Change-Id: I0cc304385be052664fad455ff075846a3a63f298 GitHub-Last-Rev: 140f08529024dd17c5ca1cbad52dd1d17c6126c0 GitHub-Pull-Request: golang/go#44857 Reviewed-on: https://go-review.googlesource.com/c/go/+/299709 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/cmd/compile/doc.go')
-rw-r--r--src/cmd/compile/doc.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/compile/doc.go b/src/cmd/compile/doc.go
index 46d4722086..b68ef274f3 100644
--- a/src/cmd/compile/doc.go
+++ b/src/cmd/compile/doc.go
@@ -83,7 +83,8 @@ Flags:
Without this flag, the -o output is a combination of both
linker and compiler input.
-m
- Print optimization decisions.
+ Print optimization decisions. Higher values or repetition
+ produce more detail.
-memprofile file
Write memory profile for the compilation to file.
-memprofilerate rate