aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-10-31 17:50:25 -0400
committerRuss Cox <rsc@golang.org>2011-10-31 17:50:25 -0400
commitd0eaa58b5a19f15546af4d61a1dc9987af168b5a (patch)
treeda4fc3e1b0dad84cb35306ae02f85f1f4ad5e01e
parenta7e473be95d02b754e120f4616520c263c4a5268 (diff)
downloadgo-d0eaa58b5a19f15546af4d61a1dc9987af168b5a.tar.gz
go-d0eaa58b5a19f15546af4d61a1dc9987af168b5a.zip
runtime/pprof: document OS X being broken
R=golang-dev, r CC=golang-dev https://golang.org/cl/5307078
-rw-r--r--src/pkg/runtime/pprof/pprof.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/pprof/pprof.go b/src/pkg/runtime/pprof/pprof.go
index fdeceb4e8d..7022896454 100644
--- a/src/pkg/runtime/pprof/pprof.go
+++ b/src/pkg/runtime/pprof/pprof.go
@@ -17,6 +17,9 @@ import (
"sync"
)
+// BUG(rsc): CPU profiling is broken on OS X, due to an Apple kernel bug.
+// For details, see http://code.google.com/p/go/source/detail?r=35b716c94225.
+
// WriteHeapProfile writes a pprof-formatted heap profile to w.
// If a write to w returns an error, WriteHeapProfile returns that error.
// Otherwise, WriteHeapProfile returns nil.