Help us shape the future of Go! Take the 2026 Go Developer Survey

symbolizer

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 13 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,
	metastore pb.MetastoreServiceClient,
	debuginfo DebugInfoFetcher,
	symbolizer *symbol.Symbolizer,
	debuginfodCacheDir string,
	debuginfoCacheDir string,
) *Symbolizer

func (*Symbolizer) Run

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

Jump to

Keyboard shortcuts

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