symbolizer

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnsymbolizableMapping added in v0.12.0

func UnsymbolizableMapping(m *pb.Mapping) bool

UnsymbolizableMapping returns true if a mapping points to a binary for which locations can't be symbolized in principle, at least now. Examples are "[vdso]", [vsyscall]" and some others, see the code.

Types

type DebugInfoFetcher added in v0.12.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, buildID string) (string, debuginfopb.DownloadInfo_Source, error)
}

type MappingLocations added in v0.12.0

type MappingLocations struct {
	Mapping   *pb.Mapping
	Locations []*pb.Location

	// LocationsLines is a list of lines per location.
	LocationsLines [][]profile.LocationLine
}

type Symbolizer

type Symbolizer struct {
	// contains filtered or unexported fields
}

func New

func New(
	logger log.Logger,
	reg prometheus.Registerer,
	metastore pb.MetastoreServiceClient,
	debuginfo DebugInfoFetcher,
	symbolizer *symbol.Symbolizer,
	debuginfodCacheDir string,
	debuginfoCacheDir string,
	batchSize uint32,
) *Symbolizer

func (*Symbolizer) Run

func (s *Symbolizer) Run(ctx context.Context, interval time.Duration) error

func (*Symbolizer) Symbolize added in v0.13.0

func (s *Symbolizer) Symbolize(ctx context.Context, locations []*pb.Location) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL