Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFuncNotFound = fmt.Errorf("function not found")
Functions ¶
func ReadCPURange ¶
loosely based on https://github.com/iovisor/bcc/blob/v0.3.0/src/python/bcc/utils.py#L15
Types ¶
type CallTree ¶
type CallTree struct {
// contains filtered or unexported fields
}
func (*CallTree) IngestStack ¶
func (c *CallTree) IngestStack(stack []uint64, symzer *Symbolizer)
type CallTreeNode ¶
type CallTreeNode struct {
Value uint64
Symbol *FuncSymbol
Count uint64
Children map[uint64]*CallTreeNode
}
type FuncSymbol ¶
func (*FuncSymbol) Contains ¶
func (f *FuncSymbol) Contains(pc uint64) bool
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
func NewProfiler ¶
func NewProfiler(pid int, symzer *Symbolizer) (*Profiler, error)
type Symbolizer ¶
type Symbolizer struct {
// contains filtered or unexported fields
}
func NewSymbolizer ¶
func NewSymbolizer(path string) (*Symbolizer, error)
func (*Symbolizer) ResolveFunc ¶
func (s *Symbolizer) ResolveFunc(pc uint64) (*FuncSymbol, error)
Click to show internal directories.
Click to hide internal directories.