]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix compilebench -alloc
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 20 Jan 2017 16:11:34 +0000 (08:11 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 20 Jan 2017 18:57:23 +0000 (18:57 +0000)
commite8d5989ed1272bed3600193003ebc9980bcb9275
tree88364b9ec02ca496e3ba70b6d3bf6ce4084c6ad0
parentea7d9e6a52ca64c200dcc75621e75f209ceceace
cmd/compile: fix compilebench -alloc

pprof.WriteHeapProfile is shorthand for
pprof.Lookup("heap").WriteTo(f, 0).
The second parameter is debug.
If it is non-zero, pprof writes legacy-format
pprof output, which compilebench can parse.

Fixes #18641

Change-Id: Ica69adeb9809e9b5933aed943dcf4a07910e43fc
Reviewed-on: https://go-review.googlesource.com/35484
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/util.go