Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultBufferSize specifies how much buffer to use for reading stack // profiles by default. DefaultBufferSize = 8 << 20 // DefaultFrozenLimit specifies when a goroutine should be considered stuck. DefaultFrozenLimit = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func Exclude ¶
func Exclude()
Exclude excludes all goroutines that contain current function in the callstack.
func ExcludeNamed ¶
func ExcludeNamed(name string)
ExcludeNamed excludes all goroutines that contain the named func The func name must be fully qualified.
antifreeze.ExcludeNamed("main.runner") antifreeze.ExcludeNamed("net/http.ListenAndServe") antifreeze.ExcludeNamed("net.(*pollDesc).Wait")
func SetBufferSize ¶
func SetBufferSize(size int)
SetBufferSize sets the maximum buffer size for reading stack profiles. Set this lower, e.g. 1<<10 (10MB) to reduce memory footprint at the cost of possibly not tracking some goroutines. Set it higher, e.g. 64<<10 (64MB) if you expect a lot of goroutines.
func SetFrozenLimit ¶
SetFrozenLimit sets the limit after which the goroutine should be considered as frozen.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.