Documentation ¶
Index ¶
- type Cache
- type Frame
- type Interner
- type Symbol
- type Symbolizer
- func (s *Symbolizer) Close()
- func (s *Symbolizer) ReadRodataSymbols(bin string) (map[string][]Symbol, error)
- func (s *Symbolizer) ReadTextSymbols(bin string) (map[string][]Symbol, error)
- func (s *Symbolizer) Symbolize(bin string, pc uint64) ([]Frame, error)
- func (s *Symbolizer) SymbolizeArray(bin string, pcs []uint64) ([]Frame, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache caches symbolization results from Symbolizer in a thread-safe way.
type Interner ¶
type Interner struct {
// contains filtered or unexported fields
}
Interner allows to intern/deduplicate strings. Interner.Do semantically returns the same string, but physically it will point to an existing string with the same contents (if there was one passed to Do in the past). Interned strings are also "cloned", that is, if the passed string points to a large buffer, it won't after interning (and won't prevent GC'ing of the large buffer). The type is not thread-safe.
type Symbolizer ¶
type Symbolizer struct {
// contains filtered or unexported fields
}
func NewSymbolizer ¶
func NewSymbolizer(target *targets.Target) *Symbolizer
func (*Symbolizer) Close ¶
func (s *Symbolizer) Close()
func (*Symbolizer) ReadRodataSymbols ¶
func (s *Symbolizer) ReadRodataSymbols(bin string) (map[string][]Symbol, error)
ReadRodataSymbols returns list of rodata symbols in the binary bin.
func (*Symbolizer) ReadTextSymbols ¶
func (s *Symbolizer) ReadTextSymbols(bin string) (map[string][]Symbol, error)
ReadTextSymbols returns list of text symbols in the binary bin.
func (*Symbolizer) Symbolize ¶
func (s *Symbolizer) Symbolize(bin string, pc uint64) ([]Frame, error)
func (*Symbolizer) SymbolizeArray ¶
func (s *Symbolizer) SymbolizeArray(bin string, pcs []uint64) ([]Frame, error)
Click to show internal directories.
Click to hide internal directories.