From 27ee719fb32b47b9bc59921e457f4b1e7f767968 Mon Sep 17 00:00:00 2001 From: Raul Silvera Date: Mon, 14 Sep 2015 14:03:45 -0700 Subject: 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 Reviewed-by: Minux Ma Run-TryBot: Minux Ma TryBot-Result: Gobot Gobot --- src/runtime/runtime.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/runtime.go') 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 -- cgit v1.3