summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-10-24 10:58:13 -0400
committerRuss Cox <rsc@golang.org>2014-10-24 10:58:13 -0400
commit578a3be106fc48e66f780e736fdf5a486236c2ab (patch)
tree95441985e09057ca9ddfa57e9bd279e93251575d /doc
parent135abd769e17b88c2bb8fde4b5963b71c582ea0f (diff)
downloadgo-578a3be106fc48e66f780e736fdf5a486236c2ab.tar.gz
net/http/pprof: run GC for /debug/pprof/heap?gc=1
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://codereview.appspot.com/161990043
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions