Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraceFrame ¶ added in v1.5.0
type TraceFrame struct {
// Index represents the index of frame in stack.
Index int
// PC represents the frame's program count.
PC uintptr
// Filename represents the file full name.
Filename string
// FuncFullName represents the function fill name.
FuncFullName string
// FuncName represents the function name.
FuncName string
// LineIndex represents the line index in the file.
LineIndex int
// LineText represents the line text in the file.
LineText string
}
TraceFrame represents a line of the runtime trace stack.
func (*TraceFrame) String ¶ added in v1.5.0
func (t *TraceFrame) String() string
String returns the formatted TraceFrame.
type TraceStack ¶ added in v1.5.0
type TraceStack []*TraceFrame
TrackStack represents the runtime trace stack, that is a slice of TraceFrame.
func RuntimeTraceStack ¶ added in v1.5.0
func RuntimeTraceStack(skip int) TraceStack
RuntimeTraceStack returns a slice of TraceFrame from runtime trace stacks using given skip.
func RuntimeTraceStackWithInfo ¶ added in v1.5.0
func RuntimeTraceStackWithInfo(skip int) (stack TraceStack, filename string, funcname string, lineIndex int, lineText string)
RuntimeTraceStackWithInfo get a slice of TraceFrame, with some information from the first trace stack line using given skip.
func (*TraceStack) String ¶ added in v1.5.0
func (t *TraceStack) String() string
String returns the formatted TraceStack.
Click to show internal directories.
Click to hide internal directories.