]> Cypherpunks repositories - gostls13.git/commit
runtime: print start of GC cycle in gctrace, rather than end
authorAustin Clements <austin@google.com>
Tue, 2 Jun 2015 18:48:12 +0000 (14:48 -0400)
committerAustin Clements <austin@google.com>
Wed, 3 Jun 2015 02:17:43 +0000 (02:17 +0000)
commit10083d80079055aa5e7946f3f4972fc4d8c296f1
treeabedb5e821209c31bc810eaa52552c660f05fbf0
parentf9ed2f75c43cb8745a1593ec3e4208c46419216a
runtime: print start of GC cycle in gctrace, rather than end

Currently the GODEBUG=gctrace=1 trace line includes "@n.nnns" to
indicate the time that the GC cycle ended relative to the time the
program started. This was meant to be consistent with the utilization
as of the end of the cycle, which is printed next on the trace line,
but it winds up just being confusing and unexpected.

Change the trace line to include the time that the GC cycle started
relative to the time the program started.

Change-Id: I7d64580cd696eb17540716d3e8a74a9d6ae50650
Reviewed-on: https://go-review.googlesource.com/10634
Reviewed-by: Rick Hudson <rlh@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgc.go