diff options
| author | Raul Silvera <rsilvera@google.com> | 2015-09-14 14:03:45 -0700 |
|---|---|---|
| committer | Minux Ma <minux@golang.org> | 2015-10-05 08:15:09 +0000 |
| commit | 27ee719fb32b47b9bc59921e457f4b1e7f767968 (patch) | |
| tree | 61845f2dc10b387dac8b4fe5c4ff7b5ae6fd4ad4 /src/runtime/runtime.go | |
| parent | 0357c38adfd5d368390d82a2ab5b32748e4bb549 (diff) | |
| download | go-27ee719fb32b47b9bc59921e457f4b1e7f767968.tar.xz | |
pprof: improve sampling for heap profiling
The current heap sampling introduces some bias that interferes
with unsampling, producing unexpected heap profiles.
The solution is to use a Poisson process to generate the
sampling points, using the formulas described at
https://en.wikipedia.org/wiki/Poisson_process
This fixes #12620
Change-Id: If2400809ed3c41de504dd6cff06be14e476ff96c
Reviewed-on: https://go-review.googlesource.com/14590
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/runtime.go')
| -rw-r--r-- | src/runtime/runtime.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index 2387d9ae8b..81d3e5b3c3 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -8,6 +8,7 @@ import _ "unsafe" // for go:linkname //go:generate go run wincallback.go //go:generate go run mkduff.go +//go:generate go run mkfastlog2table.go var ticks struct { lock mutex |
