• Russ Cox's avatar
    runtime/pprof: write heap statistics to heap profile always · c26fc88d
    Russ Cox authored
    The heap statistics were only written if asked for a profile with debug > 0,
    but that also prints a stack trace for each profile line, which is comparatively
    much noisier. The statistics are short enough and separate enough
    (they only appear at the end) and useful enough that we can print them
    always.
    
    This means that people using -test.memprofile in tests will get a memory
    profile with statistics included now. Pprof won't care, but if people care to
    look, the numbers will be there.
    
    This avoids the need for hacks like using -memprofilerate=1 to find
    the number of allocations.
    
    Change-Id: I10a4f593403d0315aad11b37c6e554b734caa73f
    Reviewed-on: https://go-review.googlesource.com/9491Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    c26fc88d
Name
Last commit
Last update
..
articles Loading commit data...
codewalk Loading commit data...
devel Loading commit data...
gopher Loading commit data...
play Loading commit data...
progs Loading commit data...
asm.html Loading commit data...
cmd.html Loading commit data...
code.html Loading commit data...
contrib.html Loading commit data...
contribute.html Loading commit data...
debugging_with_gdb.html Loading commit data...
docs.html Loading commit data...
effective_go.html Loading commit data...
gccgo_contribute.html Loading commit data...
gccgo_install.html Loading commit data...
go-logo-black.png Loading commit data...
go-logo-blue.png Loading commit data...
go-logo-white.png Loading commit data...
go1.1.html Loading commit data...
go1.2.html Loading commit data...
go1.3.html Loading commit data...
go1.4.html Loading commit data...
go1.5.txt Loading commit data...
go1.html Loading commit data...
go1compat.html Loading commit data...
go_faq.html Loading commit data...
go_mem.html Loading commit data...
go_spec.html Loading commit data...
help.html Loading commit data...
ie.css Loading commit data...
install-source.html Loading commit data...
install.html Loading commit data...
root.html Loading commit data...
share.png Loading commit data...
tos.html Loading commit data...