Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerFor ¶ added in v0.2.1
HandlerFor returns the http.Handler for the profiles snapshots collected.
func HandlerFuncFor ¶ added in v0.2.1
func HandlerFuncFor(opts ...Option) http.HandlerFunc
HandlerFuncFor returns the http.HandlerFunc for the profiles snapshots collected.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
type Option ¶
type Option func(o *option)
func WithDebugLevel ¶
WithDebugLevel sets profiles debug level
func WithEnabledProfiles ¶
WithEnabledProfiles sets collected profiles. supported: goroutine/threadcreate/heap/allocs/block/mutex/cpu
func WithSamplingSeconds ¶
WithSamplingSeconds sets sampling duration in seconds.
Click to show internal directories.
Click to hide internal directories.