Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FrameCursor ¶
type FrameCursor struct { // Current specifies the current stack frame. // if omitted, rest contains the complete stack Current *runtime.Frame // Rest specifies the rest of stack frames to explore Rest *runtime.Frames // N specifies the total number of stack frames N int }
FrameCursor stores the position in a call stack
type Trace ¶
type Trace struct { // Path is a full file path Path string `json:"path"` // Func is a function name Func string `json:"func"` // Line is a code line number Line int `json:"line"` }
Trace stores structured trace entry, including file line and path
type Traces ¶
type Traces []Trace
Traces is a list of trace entries
func CaptureTraces ¶
CaptureTraces gets the current stack trace with some deep frames skipped
func GetTracesFromCursor ¶
func GetTracesFromCursor(cursor FrameCursor) Traces
GetTracesFromCursor gets the current stack trace from a given cursor
Click to show internal directories.
Click to hide internal directories.