Documentation ¶
Overview ¶
Package autopprof provides a development-time library to collect pprof profiles from Go programs.
This package is experimental and APIs may change. package autopprof
2017-11-05 16:38 Package gxpprof provides go process info
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockProfile ¶ added in v0.3.3
type BlockProfile struct { // Rate is the fraction of goroutine blocking events that // are reported in the blocking profile. The profiler aims to // sample an average of one blocking event per rate nanoseconds spent blocked. // // If zero value is provided, it will include every blocking event // in the profile. Rate int }
BlockProfile captures stack traces that led to blocking on synchronization primitives.
func (BlockProfile) Capture ¶ added in v0.3.3
func (p BlockProfile) Capture() (string, error)
type CPUProfile ¶ added in v0.3.3
CPUProfile captures the CPU profile.
func (CPUProfile) Capture ¶ added in v0.3.3
func (p CPUProfile) Capture() (string, error)
type GoroutineProfile ¶ added in v0.3.3
type GoroutineProfile struct{}
GoroutineProfile captures stack traces of all current goroutines.
func (GoroutineProfile) Capture ¶ added in v0.3.3
func (p GoroutineProfile) Capture() (string, error)
type HeapProfile ¶ added in v0.3.3
type HeapProfile struct{}
HeapProfile captures the heap profile.
func (HeapProfile) Capture ¶ added in v0.3.3
func (p HeapProfile) Capture() (string, error)
type MutexProfile ¶ added in v0.3.3
type MutexProfile struct{}
MutexProfile captures stack traces of holders of contended mutexes.
func (MutexProfile) Capture ¶ added in v0.3.3
func (p MutexProfile) Capture() (string, error)
type ThreadcreateProfile ¶ added in v0.3.3
type ThreadcreateProfile struct{}
Threadcreate profile captures the stack traces that led to the creation of new OS threads.
func (ThreadcreateProfile) Capture ¶ added in v0.3.3
func (p ThreadcreateProfile) Capture() (string, error)
Click to show internal directories.
Click to hide internal directories.