Documentation
¶
Overview ¶
Package aruntime provides aah runtime capabilities to collect debug stacktrace, goroutines diagnosis profiling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoRoutine ¶
type GoRoutine struct {
Header string
MaxFuncLen int
MaxPkgLen int
HasPanic bool
PanicIndex int
Packages []string
Functions []string
LineNo []string
}
GoRoutine holds information of single Go routine stack trace.
type Stacktrace ¶
type Stacktrace struct {
Raw string
Recover interface{}
IsParsed bool
StripSrcBase bool
GoRoutines []*GoRoutine
}
Stacktrace holds the parse information of `debug.Stack()`. It's easier to debug and understand.
func NewStacktrace ¶
func NewStacktrace(r interface{}, appCfg *config.Config) *Stacktrace
NewStacktrace method collects debug stack information and parsing them into easy understanding and returns the instance.
func (*Stacktrace) Parse ¶
func (st *Stacktrace) Parse()
Parse method parses the go debug stacktrace into easy to understand.
func (*Stacktrace) Print ¶
func (st *Stacktrace) Print(w io.Writer)
Print method prints the stack trace info to io.Writer.
Click to show internal directories.
Click to hide internal directories.