• Russ Cox's avatar
    net/http/pprof: run GC for /debug/pprof/heap?gc=1 · c5943c66
    Russ Cox authored
    We force runtime.GC before WriteHeapProfile with -test.heapprofile.
    Make it possible to do the same with the HTTP interface.
    
    Some servers only run a GC every few minutes.
    On such servers, the heap profile will be a few minutes stale,
    which may be too old to be useful.
    
    Requested by private mail.
    
    LGTM=dvyukov
    R=dvyukov
    CC=golang-codereviews
    https://golang.org/cl/161990043
    c5943c66
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...