import cloudeng.io/debug/goroutines
Functions
func Format(gs ...*Goroutine) string
Format formats Goroutines back into the normal string representation.
Types
Type Frame
type Frame struct {
Call string
File string
Line int64
Offset int64
}
Frame represents a single stack frame.
Type Goroutine
type Goroutine struct {
ID int64
State string
Stack []*Frame
Creator *Frame
}
Goroutine represents a single goroutine.
Functions
func Get(ignore ...string) ([]*Goroutine, error)
Get gets a set of currently running goroutines and parses them into a
structured representation. Any goroutines that match the ignore list are
ignored.
func Parse(buf []byte, ignore ...string) ([]*Goroutine, error)
Parse parses a stack trace into a structure representation.