Documentation
¶
Index ¶
- Constants
- Variables
- func Attach(stack *Stack)
- func Detach()
- func Export(stack *Stack, offsetNS int64) *stack_model.Stack
- func ExportFuncInfo(entry *Entry) *stack_model.FuncInfo
- func ExportStackEntries(entries []*Entry, rootBegin time.Time, offsetNS int64) []*stack_model.StackEntry
- func ExportStackEntry(entry *Entry, rootBegin time.Time, offsetNS int64) *stack_model.StackEntry
- type Entry
- type EntryData
- type Field
- type G
- type Stack
- type StackArgs
Constants ¶
View Source
const NilG = G(uintptr(0)) // nil
Variables ¶
View Source
var InitGStack = &Stack{}
InitGStack special stack during init
View Source
var NilGStack = &Stack{}
NilGStack is a guard pointer for when g is nil because m is just starting on g0
Functions ¶
func ExportFuncInfo ¶
func ExportFuncInfo(entry *Entry) *stack_model.FuncInfo
func ExportStackEntries ¶
func ExportStackEntries(entries []*Entry, rootBegin time.Time, offsetNS int64) []*stack_model.StackEntry
func ExportStackEntry ¶
func ExportStackEntry(entry *Entry, rootBegin time.Time, offsetNS int64) *stack_model.StackEntry
Types ¶
type Entry ¶
type Entry struct {
ID int
ParentID int
FuncInfo *core.FuncInfo
BeginNs int64
EndNs int64
Finished bool
Children []*Entry
Data EntryData
Go bool // has go keyword
// only valid when Go==true
GetStack func() *Stack
FuncName string
File string
Line int
HitMock bool
Panic bool
PanicLine int
Error string
Args interface{}
Results interface{}
}
type G ¶
type G uintptr
G points to runtime.G
func (G) AttachStack ¶
func (G) DetachStack ¶
func (g G) DetachStack()
func (G) GetOrAttachStack ¶
Click to show internal directories.
Click to hide internal directories.