{"modulePath":"github.com/matrixorigin/matrixone","version":"v1.2.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package goroutine\n\n## Functions\n\n```go\nfunc GetAnalyzer() *analyzer\n```\n\n```go\nfunc StartLeakCheck(\n\tstopper *stopper.Stopper,\n\tcfg Config)\n```\n\n## Types\n\n```go\ntype AnalyzeResult struct {\n\tGoroutines []Goroutine\n\t// contains filtered or unexported fields\n}\n```\nAnalyzeResult analyze result\n\n```go\nfunc (res AnalyzeResult) Display(\n\ttop int,\n\tfilter func(i, j int) (bool, bool)) string\n```\n\n```go\nfunc (res AnalyzeResult) GroupCount() int\n```\n\n```go\nfunc (res AnalyzeResult) String() string\n```\n\n```go\ntype Analyzer interface {\n\tParseSystem() ([]Goroutine, error)\n\tParse(stack []byte) []Goroutine\n\tGroupAnalyze([]Goroutine) AnalyzeResult\n}\n```\n\n```go\ntype Config struct {\n\t// EnableLeakCheck enable goroutine leak check\n\tEnableLeakCheck bool `toml:\"enable-leak-check\"`\n\t// SuspectLeakCount if goroutine count \u003e suspect-leak-count, maybe leak. Default is 10000.\n\tSuspectLeakCount int `toml:\"suspect-leak-count\"`\n\t// CheckDuration check goroutine duration. Default is 1 hour.\n\tCheckDuration toml.Duration `toml:\"check-duration\"`\n}\n```\nConfig leak check config\n\n```go\ntype Goroutine struct {\n\tID             int\n\tState          string\n\tBlockedMinutes int\n\t// contains filtered or unexported fields\n}\n```\nGoroutine goroutine\n\n```go\nfunc (g Goroutine) CreateBy() (string, string)\n```\n\n```go\nfunc (g Goroutine) Has(value string) bool\n```\n\n```go\nfunc (g Goroutine) IsEmpty() bool\n```\n\n```go\nfunc (g Goroutine) Last() string\n```\n\n```go\nfunc (g Goroutine) String() string\n```\n\n","path":"github.com/matrixorigin/matrixone/pkg/util/debug/goroutine","name":"goroutine","synopsis":"","isRedistributable":true}
