diff options
| author | Oling Cat <olingcat@gmail.com> | 2012-11-26 10:53:11 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-11-26 10:53:11 -0500 |
| commit | f80f23e7480599c2397f50dd2aafa9a5f8bd58d9 (patch) | |
| tree | e7db61d0fdcd0be9c2c26789a10bf6e8dac19e1f /src/pkg/runtime/debug.go | |
| parent | e8cf49f701cf9204f51df2557f75e33d2da4b5d9 (diff) | |
| download | go-f80f23e7480599c2397f50dd2aafa9a5f8bd58d9.tar.xz | |
runtime: re-format comments.
add necessary newlines.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6847067
Diffstat (limited to 'src/pkg/runtime/debug.go')
| -rw-r--r-- | src/pkg/runtime/debug.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go index 0211ce61b8..d82afb08ec 100644 --- a/src/pkg/runtime/debug.go +++ b/src/pkg/runtime/debug.go @@ -125,6 +125,7 @@ func GoroutineProfile(p []StackRecord) (n int, ok bool) // 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. @@ -133,6 +134,7 @@ 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. |
