Documentation ¶
Index ¶
- Variables
- func Start(ctx *cli.Context) error
- func StartPProfWebUi(address string)
- func Stop()
- type HandlerT
- func (*HandlerT) MemStats() *runtime.MemStats
- func (h *HandlerT) StartBlockingProfile(rate int, file string) error
- func (h *HandlerT) StartCPUProfile(file string) error
- func (h *HandlerT) StartGoTrace(file string) error
- func (h *HandlerT) StartMemProfile(rate int, file string) error
- func (h *HandlerT) StopBlockingProfile() error
- func (h *HandlerT) StopCPUProfile() error
- func (h *HandlerT) StopGoTrace() error
- func (h *HandlerT) StopMemHeapProfile() error
Constants ¶
This section is empty.
Variables ¶
var ( ProfilingNotInProgressError = errors.New("CPU profiling not in progress") BlockProfileNotExistError = errors.New("Block profile does not exist") )
var Handler = new(HandlerT)
Handler is the global debugging handler.
Functions ¶
func StartPProfWebUi ¶
func StartPProfWebUi(address string)
Types ¶
type HandlerT ¶
type HandlerT struct {
// contains filtered or unexported fields
}
HandlerT implements the debugging API. Do not create values of this type, use the one in the Handler variable instead.
func (*HandlerT) StartBlockingProfile ¶
StartBlockingProfile starts blocking profiling. rate 0 disables block profiling.
func (*HandlerT) StartCPUProfile ¶
StartCPUProfile turns on CPU profiling, writing to the given file.
func (*HandlerT) StartGoTrace ¶
tracing StartGoTrace turns on tracing, writing to the given file.
func (*HandlerT) StartMemProfile ¶
StartMemProfile starts the memory profiling rate that controls the fraction of memory allocations that are recorded and reported in the memory profile.
func (*HandlerT) StopBlockingProfile ¶
StopBlockProfile stops an ongoing blocking profile
func (*HandlerT) StopCPUProfile ¶
StopCPUProfile stops an ongoing CPU profile.
func (*HandlerT) StopGoTrace ¶
StopTrace stops an ongoing trace.
func (*HandlerT) StopMemHeapProfile ¶
StopMemHeapProfile stops an ongoing memory heap profile