aruntime

package
v0.12.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 11 Imported by: 1

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.

Directories

Path Synopsis
Package diagnosis brings feature of aah application profiling to do various diagnosis.
Package diagnosis brings feature of aah application profiling to do various diagnosis.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL