diff options
author | Austin Clements <austin@google.com> | 2016-01-08 14:57:26 -0500 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2016-01-08 21:25:03 +0000 |
commit | 1f26864f88a419e6e99c6a4d171a5a15b09739a1 (patch) | |
tree | 35fba6a6d74df5947f40a0a35dc78309efbf2c74 /src/runtime/extern.go | |
parent | 73c2080ace5d7bd2d7905fd2ea7237823e291521 (diff) | |
download | go-1f26864f88a419e6e99c6a4d171a5a15b09739a1.tar.gz go-1f26864f88a419e6e99c6a4d171a5a15b09739a1.zip |
runtime: clean up gctrace format
Go 1.6 simplified the GC phases. The "synchronize Ps" phase no longer
exists and "root scan" and "mark" phases have been combined.
Update the gctrace line implementation and documentation to remove the
unused phases.
Fixes #13536.
Change-Id: I4fc37a3ce1ae3a99d48c0be2df64cbda3e05dee6
Reviewed-on: https://go-review.googlesource.com/18458
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/extern.go')
-rw-r--r-- | src/runtime/extern.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go index f52c66cf87..2c98482e26 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -66,7 +66,7 @@ It is a comma-separated list of name=val pairs setting these named variables: length of the pause. Setting gctrace=2 emits the same summary but also repeats each collection. The format of this line is subject to change. Currently, it is: - gc # @#s #%: #+...+# ms clock, #+...+# ms cpu, #->#-># MB, # MB goal, # P + gc # @#s #%: #+#+# ms clock, #+#/#/#+# ms cpu, #->#-># MB, # MB goal, # P where the fields are as follows: gc # the GC number, incremented at each GC @#s time in seconds since program start @@ -75,9 +75,9 @@ It is a comma-separated list of name=val pairs setting these named variables: #->#-># MB heap size at GC start, at GC end, and live heap # MB goal goal heap size # P number of processors used - The phases are stop-the-world (STW) sweep termination, scan, - synchronize Ps, mark, and STW mark termination. The CPU times - for mark are broken down in to assist time (GC performed in + The phases are stop-the-world (STW) sweep termination, concurrent + mark and scan, and STW mark termination. The CPU times + for mark/scan are broken down in to assist time (GC performed in line with allocation), background GC time, and idle GC time. If the line ends with "(forced)", this GC was forced by a runtime.GC() call and all phases are STW. |