Documentation ¶
Overview ¶
Package stack provides support for parsing standard goroutine stack traces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Call ¶
type Call struct { Stack Stack // the shared callstack information Groups []Group // the sets of goroutines with the same state }
Call is set of goroutines that all share the same callstack. They will be grouped by state.
type Delta ¶
type Delta struct { Before Dump // The goroutines that were only in the before set. After Dump // The goroutines that were only in the after set. }
Delta represents the difference between two stack dumps.
type Function ¶
type Function struct { Package string // package name of function if known Type string // if set function is a method of this type Name string // function name of the frame }
Function is the function called at a frame.
type Goroutine ¶
type Goroutine struct { State string // state that the goroutine is in. ID int // id of the goroutine. Stack Stack // call frames that make up the stack }
Goroutine is a single parsed goroutine dump.
type Group ¶
type Group struct { State string // the shared state of the goroutines Goroutines []Goroutine // the set of goroutines in this group }
Group is a set of goroutines with the same stack that are in the same state.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner splits an input stream into lines in a way that is consumable by the parser.
func NewScanner ¶
NewScanner creates a scanner on top of a reader.
func (*Scanner) Done ¶
Done returns true if the scanner has reached the end of the underlying stream.
func (*Scanner) Match ¶
Match returns the submatchs of the regular expression against the next line. If it matched the line is also consumed.
type Summary ¶
type Summary struct { Total int // the total count of goroutines in the summary Calls []Call // the collated stack traces }
Summary is a set of stacks processed and collated into Calls.
Directories ¶
Path | Synopsis |
---|---|
The gostacks command processes stdin looking for things that look like stack traces and simplifying them to make the log more readable.
|
The gostacks command processes stdin looking for things that look like stack traces and simplifying them to make the log more readable. |