symbolizer

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReaderAtCloser

func NewReaderAtCloser(data []byte) interface {
	io.ReadCloser
	io.ReaderAt
}

Types

type Config

type Config struct {
	DebuginfodURL string `yaml:"debuginfod_url"`
}

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

type DebuginfodClient

type DebuginfodClient interface {
	FetchDebuginfo(ctx context.Context, buildID string) (io.ReadCloser, error)
}

type DebuginfodClientConfig

type DebuginfodClientConfig struct {
	BaseURL       string
	HTTPClient    *http.Client
	BackoffConfig backoff.Config
	UserAgent     string

	NotFoundCacheMaxItems int64
	NotFoundCacheTTL      time.Duration
}

DebuginfodClientConfig holds configuration for the debuginfod client.

type DebuginfodHTTPClient

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

DebuginfodHTTPClient implements the DebuginfodClient interface using HTTP.

func NewDebuginfodClient

func NewDebuginfodClient(logger log.Logger, baseURL string, metrics *metrics) (*DebuginfodHTTPClient, error)

NewDebuginfodClient creates a new client for fetching debug information from a debuginfod server.

func NewDebuginfodClientWithConfig

func NewDebuginfodClientWithConfig(logger log.Logger, cfg DebuginfodClientConfig, metrics *metrics) (*DebuginfodHTTPClient, error)

NewDebuginfodClientWithConfig creates a new client with the specified configuration.

func (*DebuginfodHTTPClient) FetchDebuginfo

func (c *DebuginfodHTTPClient) FetchDebuginfo(ctx context.Context, buildID string) (io.ReadCloser, error)

FetchDebuginfo fetches the debuginfo file for a specific build ID.

type LidiaTableCacheEntry

type LidiaTableCacheEntry struct {
	Data []byte // Processed Lidia table data
}

LidiaTableCacheEntry represents a cached Lidia table with its binary layout information

type Symbolizer

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

func New

func New(logger log.Logger, cfg Config, reg prometheus.Registerer, bucket objstore.Bucket) (*Symbolizer, error)

func (*Symbolizer) SymbolizePprof

func (s *Symbolizer) SymbolizePprof(ctx context.Context, profile *googlev1.Profile) error

Jump to

Keyboard shortcuts

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