Package pprof
import "runtime/pprof"
Package pprof writes runtime profiling data in the format expected by the pprof visualization tool. For more information about pprof, see http://code.google.com/p/google-perftools/.
Package files
pprof.gofunc StartCPUProfile
func StartCPUProfile(w io.Writer) os.Error
StartCPUProfile enables CPU profiling for the current process. While profiling, the profile will be buffered and written to w. StartCPUProfile returns an error if profiling is already enabled.
func StopCPUProfile
func StopCPUProfile()
StopCPUProfile stops the current CPU profile, if any. StopCPUProfile only returns after all the writes for the profile have completed.
func WriteHeapProfile
func WriteHeapProfile(w io.Writer) os.Error
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.