<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Mar 28, 2014, at 4:28 AM, Evgeniy Ivanov <<a href="mailto:i@eivanov.com">i@eivanov.com</a>> wrote:<div><blockquote type="cite"><div dir="ltr"><div>I enable / disable profiling on the fly via <span style="font-family: monospace; font-size: inherit;">prof_active. Each time I dump results (</span><span style="font-family: monospace; font-size: inherit;">prof_accum is true)</span><span style="font-family: monospace; font-size: inherit;">. Is there any way to reset statistics / stack traces between?</span></div>
</div></blockquote><br></div><div>It isn't possible to reset the heap profiling state within jemalloc, but there is an easy solution to what you're trying to do: dump a profile at the point where you would like to reset, and pass it to pprof using the --base option. This will cause pprof to subtract out everything that shows up in the base profile.</div><div><br></div><div>Jason</div><br></body></html>