Versions in this module Expand all Collapse all v1 v1.0.2 Apr 19, 2023 v1.0.1 Feb 3, 2022 v1.0.0 Feb 3, 2022 Changes in this version + var Branch = "unknown" + var BuildDate = "unknown" + var Commit = "unknown" + var FunctionLineArgAddresses = 6 + var FunctionLineMatch = regexp.MustCompile(`([ \w\.\/]+)(\((.*?)\))?([\w\.\/]+)?(\((.*?)\))?$`) + var FunctionLineMatchFullyQualifiedName = 1 + var FunctionLineMatchLength = 7 + var FunctionLineStructContext = 3 + var FunctionLineStructFunction = 4 + var LocationLineMatch = regexp.MustCompile(`^\t(.*?\.go):(\d+)( \+(.*?))?$`) + var LocationLineMatchedFile = 1 + var LocationLineMatchedLength = 5 + var LocationLineMatchedLine = 2 + var LocationLineMatchedOffsetAddress = 4 + var RoutineLineMatch = regexp.MustCompile(`^goroutine (\d+) \[([\w ]+)(, (\d+) (\w+))?]:$`) + var RoutineLineMatchDuration = 4 + var RoutineLineMatchDurationUnit = 5 + var RoutineLineMatchId = 1 + var RoutineLineMatchLength = 6 + var RoutineLineMatchType = 2 + var Version = "unknown" + type Dump struct + Routines []*Routine + Stats *Stats + func ParseFile(filePath string, logger Logger) (*Dump, error) + func ParseScanner(scanner *bufio.Scanner, logger Logger) (*Dump, error) + type Frame struct + ArgumentAddresses []string + FileEndLine int + FileStartLine int + Function string + FunctionLineText string + Line int + LocationLineText string + Offset string + Path string + StructContext string + StructContextFunction string + UniqueId string + type FunctionLine struct + ArgAddresses []string + FullyQualifiedName string + Location *LocationLine + StructContext string + StructFunction string + func ParseFunctionLine(line string) (*FunctionLine, error) + type LocationLine struct + File string + Line int + OffsetAddress string + UniqueId string + func ParseLocationLine(line string) (*LocationLine, error) + type LocationStats struct + Count int + LongestWait time.Duration + ShortestWait time.Duration + type Logger interface + Debug func(...interface{}) + Debugf func(string, ...interface{}) + Error func(...interface{}) + Errorf func(string, ...interface{}) + Info func(...interface{}) + Infof func(string, ...interface{}) + Warn func(...interface{}) + Warnf func(string, ...interface{}) + type Routine struct + AllLines []string + FileEndLine int + FileStartLine int + Frames []*Frame + LineText string + StackSignature string + func (r *Routine) Raw() string + type RoutineLine struct + Duration string + DurationUnit string + Id int + Type string + func ParseRoutineLine(line string) (*RoutineLine, error) + type RoutineStats struct + Routines []*Routine + RoutinesBySignature map[string][]*Routine + type Stats struct + RoutinesByFunction *orderedmap.OrderedMap + RoutinesByType *orderedmap.OrderedMap + func (stats *Stats) Collect(routine *Routine) + func (stats *Stats) GetRoutinesByFunction(name string) *RoutineStats