aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/debug.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2014-09-02 00:14:22 -0400
committerRuss Cox <rsc@golang.org>2014-09-02 00:14:22 -0400
commitac49e6735bb3757a16816f7400ce823cd6fc8508 (patch)
treee2ff90501cb6b2dd7ae66b05ffacc41434d5d20a /src/pkg/runtime/debug.go
parenta19e638db27d6e03c9f0c0220a547f7ebd9e599a (diff)
downloadgo-ac49e6735bb3757a16816f7400ce823cd6fc8508.tar.xz
runtime: convert cpuprof from C to Go
LGTM=dvyukov, rsc R=golang-codereviews, dvyukov, rsc CC=golang-codereviews https://golang.org/cl/132440043
Diffstat (limited to 'src/pkg/runtime/debug.go')
-rw-r--r--src/pkg/runtime/debug.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go
index 9ccbaedc84..ed11fb1b1a 100644
--- a/src/pkg/runtime/debug.go
+++ b/src/pkg/runtime/debug.go
@@ -49,22 +49,3 @@ func NumGoroutine() int {
}
func gcount() int32
-
-// CPUProfile returns the next chunk of binary CPU profiling stack trace data,
-// blocking until data is available. If profiling is turned off and all the profile
-// data accumulated while it was on has been returned, CPUProfile returns nil.
-// The caller must save the returned data before calling CPUProfile again.
-//
-// Most clients should use the runtime/pprof package or
-// the testing package's -test.cpuprofile flag instead of calling
-// CPUProfile directly.
-func CPUProfile() []byte
-
-// SetCPUProfileRate sets the CPU profiling rate to hz samples per second.
-// If hz <= 0, SetCPUProfileRate turns off profiling.
-// If the profiler is on, the rate cannot be changed without first turning it off.
-//
-// Most clients should use the runtime/pprof package or
-// the testing package's -test.cpuprofile flag instead of calling
-// SetCPUProfileRate directly.
-func SetCPUProfileRate(hz int)