From a10f158d6fdac7c6130b816a00ff14cc22619d2e Mon Sep 17 00:00:00 2001 From: Leonard Wang Date: Sun, 10 Apr 2022 21:57:39 +0800 Subject: [PATCH] runtime: update description of GODEBUG=gctrace=1 For #44167. Change-Id: I2dcd13cbe74e88de00e9fc51f9bd86e604a167df Reviewed-on: https://go-review.googlesource.com/c/go/+/399300 Reviewed-by: Michael Knyszek Reviewed-by: Emmanuel Odeke Run-TryBot: Emmanuel Odeke Auto-Submit: Emmanuel Odeke TryBot-Result: Gopher Robot --- src/runtime/extern.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/runtime/extern.go b/src/runtime/extern.go index f1f6ea51231fed..39bdd09849e596 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -64,13 +64,15 @@ It is a comma-separated list of name=val pairs setting these named variables: Currently, it is: 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 - #% percentage of time spent in GC since program start - #+...+# wall-clock/CPU times for the phases of the GC - #->#-># MB heap size at GC start, at GC end, and live heap - # MB goal goal heap size - # P number of processors used + gc # the GC number, incremented at each GC + @#s time in seconds since program start + #% percentage of time spent in GC since program start + #+...+# wall-clock/CPU times for the phases of the GC + #->#-># MB heap size at GC start, at GC end, and live heap + # MB goal goal heap size + # MB stacks estimated scannable stack size + # MB globals scannable global size + # P number of processors used 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