]> Cypherpunks repositories - gostls13.git/commit
runtime: add cumulative GC CPU % to gctrace line
authorAustin Clements <austin@google.com>
Wed, 1 Apr 2015 17:47:35 +0000 (13:47 -0400)
committerAustin Clements <austin@google.com>
Thu, 2 Apr 2015 23:37:13 +0000 (23:37 +0000)
commitf244a1471d468eb35fb982cd6b4518d38bebf678
tree7a62a9bfad5948c5285f154f6d47fd4e28189841
parent24ee948269580391dda0e3ec50136d25a5778280
runtime: add cumulative GC CPU % to gctrace line

This tracks both total CPU time used by GC and the total time
available to all Ps since the beginning of the program and uses this
to derive a cumulative CPU usage percent for the gctrace line.

Change-Id: Ica85372b8dd45f7621909b325d5ac713a9b0d015
Reviewed-on: https://go-review.googlesource.com/8350
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgc.go
src/runtime/proc1.go
src/runtime/runtime2.go