Home | History | Annotate | Download | only in pprof

Lines Matching refs:profiling

5 // Package pprof writes runtime profiling data in the format expected
8 // Profiling a Go program
10 // The first step to profiling a Go program is to enable profiling.
11 // Support for profiling benchmarks built with the standard testing
18 // To add equivalent profiling support to a standalone program, add
52 // There is also a standard HTTP interface to profiling data. Adding
119 // output to a writer during profiling.
697 profiling bool
701 // StartCPUProfile enables CPU profiling for the current process.
702 // While profiling, the profile will be buffered and written to w.
703 // StartCPUProfile returns an error if profiling is already enabled.
710 // for syscall.SIGPROF, but note that doing so may break any profiling
713 // The runtime routines allow a variable profiling rate,
730 if cpu.profiling {
731 return fmt.Errorf("cpu profiling already in use")
733 cpu.profiling = true
740 // binary CPU profiling stack trace data, blocking until data is available.
741 // If profiling is turned off and all the profile data accumulated while it was
775 if !cpu.profiling {
778 cpu.profiling = false