Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnalyzer ¶
func GetAnalyzer() *analyzer
func StartLeakCheck ¶
Types ¶
type AnalyzeResult ¶
type AnalyzeResult struct { Goroutines []Goroutine // contains filtered or unexported fields }
AnalyzeResult analyze result
func (AnalyzeResult) GroupCount ¶
func (res AnalyzeResult) GroupCount() int
func (AnalyzeResult) String ¶
func (res AnalyzeResult) String() string
type Config ¶
type Config struct { // EnableLeakCheck enable goroutine leak check EnableLeakCheck bool `toml:"enable-leak-check"` // SuspectLeakCount if goroutine count > suspect-leak-count, maybe leak. Default is 10000. SuspectLeakCount int `toml:"suspect-leak-count"` // CheckDuration check goroutine duration. Default is 1 hour. CheckDuration toml.Duration `toml:"check-duration"` }
Config leak check config
Click to show internal directories.
Click to hide internal directories.