]> Cypherpunks repositories - gostls13.git/commit
runtime: report marked heap size in gctrace
authorAustin Clements <austin@google.com>
Thu, 2 Apr 2015 23:53:02 +0000 (19:53 -0400)
committerAustin Clements <austin@google.com>
Mon, 6 Apr 2015 21:28:23 +0000 (21:28 +0000)
commit8c3fc088fbe1a25be73430a20a0c76af3c68d2f5
treea6d0197ab2a1749f9c87bf366ae533bbe7250eb7
parent6d12b1780e4ce82cb52ea7328f6ce410ce3211a2
runtime: report marked heap size in gctrace

When the gctrace GODEBUG option is enabled, it will now report three
heap sizes: the heap size at the beginning of the GC cycle, the heap
size at the end of the GC cycle before sweeping, and marked heap size,
which is the amount of heap that will be retained until the next GC
cycle.

Change-Id: Ie13f8a6d5c609bc9cc47c7555960ab55b37b5f1c
Reviewed-on: https://go-review.googlesource.com/8430
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go