1
0
mirror of https://github.com/golang/go synced 2024-11-19 18:04:40 -07:00
go/src/runtime/pprof
Hitoshi Mitake 8c838192b8 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>
2016-03-05 08:14:23 +00:00
..
mprof_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
pprof_test.go runtime/pprof: sort counted profiles by count 2016-03-02 20:04:29 +00:00
pprof.go runtime: don't print EnableGC flag in WriteHeapProfile() 2016-03-05 08:14:23 +00:00