Documentation ¶
Overview ¶
Package callstack maintains the callstack of an executing program as accurately as possible.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallStack ¶
type CallStack struct { // call stack of running program Stack []*dwarf.SourceLine // list of callers for all executed functions Callers map[string]([]*dwarf.SourceLine) }
callStack maintains information about function calls and the order in which they happen.
func NewCallStack ¶
func NewCallStack() CallStack
NewCallStack is the preferred method of initialisation for the CallStack type
func (CallStack) WriteCallStack ¶
WriteCallstack writes out the current callstack
Click to show internal directories.
Click to hide internal directories.