Documentation ¶
Index ¶
- Variables
- func CalculateBase(ei profile.ExecutableInfo, m profile.Mapping, addr uint64) (uint64, error)
- func NormalizeAddress(addr uint64, ei profile.ExecutableInfo, m profile.Mapping) (uint64, error)
- type BadgerCache
- type DebuginfoFetcher
- type DebuginfoMetadata
- type Option
- type SymbolizationRequest
- type SymbolizationRequestMappingAddrs
- type Symbolizer
- type SymbolizerCache
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CalculateBase ¶ added in v0.22.0
Base determines the base address to subtract from virtual address to get symbol table address. For an executable, the base is 0. Otherwise, it's a shared library, and the base is the address where the mapping starts. The kernel needs special handling.
func NormalizeAddress ¶ added in v0.22.0
Types ¶
type BadgerCache ¶ added in v0.22.0
type BadgerCache struct {
// contains filtered or unexported fields
}
func NewBadgerCache ¶ added in v0.22.0
func NewBadgerCache(db *badger.DB) *BadgerCache
func (*BadgerCache) Get ¶ added in v0.22.0
func (c *BadgerCache) Get(ctx context.Context, buildID string, addr uint64) ([]profile.LocationLine, bool, error)
func (*BadgerCache) Set ¶ added in v0.22.0
func (c *BadgerCache) Set(ctx context.Context, buildID string, addr uint64, lines []profile.LocationLine) error
type DebuginfoFetcher ¶ added in v0.15.0
type DebuginfoFetcher interface { // Fetch ensures that the debug info for the given build ID is available on // a local filesystem and returns a path to it. FetchDebuginfo(ctx context.Context, dbginfo *debuginfopb.Debuginfo) (io.ReadCloser, error) }
type DebuginfoMetadata ¶ added in v0.15.0
type DebuginfoMetadata interface { SetQuality(ctx context.Context, buildID string, typ debuginfopb.DebuginfoType, quality *debuginfopb.DebuginfoQuality) error Fetch(ctx context.Context, buildID string, typ debuginfopb.DebuginfoType) (*debuginfopb.Debuginfo, error) }
type Option ¶ added in v0.15.0
type Option func(*Symbolizer)
func WithDemangleMode ¶ added in v0.15.0
type SymbolizationRequest ¶ added in v0.22.0
type SymbolizationRequest struct { BuildID string Mappings []SymbolizationRequestMappingAddrs }
type SymbolizationRequestMappingAddrs ¶ added in v0.22.0
type Symbolizer ¶
type Symbolizer struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger log.Logger, metadata DebuginfoMetadata, cache SymbolizerCache, debuginfo DebuginfoFetcher, tmpDir string, opts ...Option, ) *Symbolizer
func (*Symbolizer) Symbolize ¶ added in v0.13.0
func (s *Symbolizer) Symbolize( ctx context.Context, req SymbolizationRequest, ) error
Click to show internal directories.
Click to hide internal directories.