]> Cypherpunks repositories - gostls13.git/commit
runtime: don't print EnableGC flag in WriteHeapProfile()
authorHitoshi Mitake <mitake.hitoshi@gmail.com>
Wed, 13 Jan 2016 14:06:27 +0000 (23:06 +0900)
committerMinux Ma <minux@golang.org>
Sat, 5 Mar 2016 08:14:23 +0000 (08:14 +0000)
commit8c838192b84c062ccf208809320cab68d762a973
tree364023176961a4afeb2ce798dde4a63724cc8cea
parent4ab1793a781462d61f19abc1c6060704a8ed01c3
runtime: don't print EnableGC flag in WriteHeapProfile()

Current runtime.WriteHeapProfile() doesn't print correct
EnableGC. Even if GOGC=off, the result file has below line:
 # EnableGC = true

It is hard to print correct status of the variable because of corner
cases e.g. initialization. For avoiding confusion, this commit removes
the print.

Change-Id: Ia792454a6c650bdc50a06fbaff4df7b6330ae08a
Reviewed-on: https://go-review.googlesource.com/18600
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/pprof/pprof.go