diff options
author | Russ Cox <rsc@golang.org> | 2014-10-24 10:58:13 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-10-24 10:58:13 -0400 |
commit | 578a3be106fc48e66f780e736fdf5a486236c2ab (patch) | |
tree | 95441985e09057ca9ddfa57e9bd279e93251575d /src/unsafe | |
parent | 135abd769e17b88c2bb8fde4b5963b71c582ea0f (diff) | |
download | go-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 'src/unsafe')
0 files changed, 0 insertions, 0 deletions