Documentation ¶
Index ¶
- Variables
- type Function
- type FunctionKey
- type FunctionStore
- type InMemorySQLiteMetaStore
- func (s InMemorySQLiteMetaStore) Close() error
- func (s InMemorySQLiteMetaStore) CreateFunction(ctx context.Context, fn *Function) (uuid.UUID, error)
- func (s InMemorySQLiteMetaStore) CreateLocation(ctx context.Context, l *Location) (uuid.UUID, error)
- func (s InMemorySQLiteMetaStore) CreateMapping(ctx context.Context, m *Mapping) (uuid.UUID, error)
- func (s InMemorySQLiteMetaStore) GetFunctionByKey(ctx context.Context, k FunctionKey) (*Function, error)
- func (s InMemorySQLiteMetaStore) GetFunctions(ctx context.Context) ([]*Function, error)
- func (s InMemorySQLiteMetaStore) GetLocationByKey(ctx context.Context, k LocationKey) (*Location, error)
- func (s InMemorySQLiteMetaStore) GetLocations(ctx context.Context) ([]*Location, error)
- func (s InMemorySQLiteMetaStore) GetLocationsByIDs(ctx context.Context, ids ...uuid.UUID) (map[uuid.UUID]*Location, error)
- func (s InMemorySQLiteMetaStore) GetMappingByKey(ctx context.Context, k MappingKey) (*Mapping, error)
- func (s InMemorySQLiteMetaStore) GetMappingsByIDs(ctx context.Context, ids ...uuid.UUID) (map[uuid.UUID]*Mapping, error)
- func (s InMemorySQLiteMetaStore) GetSymbolizableLocations(ctx context.Context) ([]*Location, error)
- func (s InMemorySQLiteMetaStore) Ping() error
- func (s InMemorySQLiteMetaStore) Symbolize(ctx context.Context, l *Location) error
- type Line
- type Location
- type LocationKey
- type LocationLine
- type LocationStore
- type Mapping
- type MappingKey
- type MappingStore
- type OnDiskSQLiteMetaStore
- func (s OnDiskSQLiteMetaStore) Close() error
- func (s OnDiskSQLiteMetaStore) CreateFunction(ctx context.Context, fn *Function) (uuid.UUID, error)
- func (s OnDiskSQLiteMetaStore) CreateLocation(ctx context.Context, l *Location) (uuid.UUID, error)
- func (s OnDiskSQLiteMetaStore) CreateMapping(ctx context.Context, m *Mapping) (uuid.UUID, error)
- func (s OnDiskSQLiteMetaStore) GetFunctionByKey(ctx context.Context, k FunctionKey) (*Function, error)
- func (s OnDiskSQLiteMetaStore) GetFunctions(ctx context.Context) ([]*Function, error)
- func (s OnDiskSQLiteMetaStore) GetLocationByKey(ctx context.Context, k LocationKey) (*Location, error)
- func (s OnDiskSQLiteMetaStore) GetLocations(ctx context.Context) ([]*Location, error)
- func (s OnDiskSQLiteMetaStore) GetLocationsByIDs(ctx context.Context, ids ...uuid.UUID) (map[uuid.UUID]*Location, error)
- func (s OnDiskSQLiteMetaStore) GetMappingByKey(ctx context.Context, k MappingKey) (*Mapping, error)
- func (s OnDiskSQLiteMetaStore) GetMappingsByIDs(ctx context.Context, ids ...uuid.UUID) (map[uuid.UUID]*Mapping, error)
- func (s OnDiskSQLiteMetaStore) GetSymbolizableLocations(ctx context.Context) ([]*Location, error)
- func (s OnDiskSQLiteMetaStore) Ping() error
- func (s OnDiskSQLiteMetaStore) Symbolize(ctx context.Context, l *Location) error
- type ProfileMetaStore
- type RemoteMetaStore
- func (s RemoteMetaStore) Close() error
- func (s RemoteMetaStore) CreateFunction(ctx context.Context, fn *Function) (uuid.UUID, error)
- func (s RemoteMetaStore) CreateLocation(ctx context.Context, l *Location) (uuid.UUID, error)
- func (s RemoteMetaStore) CreateMapping(ctx context.Context, m *Mapping) (uuid.UUID, error)
- func (s RemoteMetaStore) GetFunctionByKey(ctx context.Context, k FunctionKey) (*Function, error)
- func (s RemoteMetaStore) GetFunctions(ctx context.Context) ([]*Function, error)
- func (s RemoteMetaStore) GetLocationByKey(ctx context.Context, k LocationKey) (*Location, error)
- func (s RemoteMetaStore) GetLocations(ctx context.Context) ([]*Location, error)
- func (s RemoteMetaStore) GetLocationsByIDs(ctx context.Context, ids ...uuid.UUID) (map[uuid.UUID]*Location, error)
- func (s RemoteMetaStore) GetMappingByKey(ctx context.Context, k MappingKey) (*Mapping, error)
- func (s RemoteMetaStore) GetMappingsByIDs(ctx context.Context, ids ...uuid.UUID) (map[uuid.UUID]*Mapping, error)
- func (s RemoteMetaStore) GetSymbolizableLocations(ctx context.Context) ([]*Location, error)
- func (s RemoteMetaStore) Ping() error
- func (s RemoteMetaStore) Symbolize(ctx context.Context, l *Location) error
- type SerializedLocation
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Function ¶ added in v0.4.0
type Function struct { ID uuid.UUID FunctionKey }
type FunctionKey ¶
func MakeFunctionKey ¶
func MakeFunctionKey(f *Function) FunctionKey
type FunctionStore ¶
type InMemorySQLiteMetaStore ¶
type InMemorySQLiteMetaStore struct {
// contains filtered or unexported fields
}
func NewInMemorySQLiteProfileMetaStore ¶
func NewInMemorySQLiteProfileMetaStore( reg prometheus.Registerer, tracer trace.Tracer, name ...string, ) (*InMemorySQLiteMetaStore, error)
func (InMemorySQLiteMetaStore) CreateFunction ¶
func (InMemorySQLiteMetaStore) CreateLocation ¶
func (InMemorySQLiteMetaStore) CreateMapping ¶
func (InMemorySQLiteMetaStore) GetFunctionByKey ¶
func (s InMemorySQLiteMetaStore) GetFunctionByKey(ctx context.Context, k FunctionKey) (*Function, error)
func (InMemorySQLiteMetaStore) GetFunctions ¶
func (InMemorySQLiteMetaStore) GetLocationByKey ¶
func (s InMemorySQLiteMetaStore) GetLocationByKey(ctx context.Context, k LocationKey) (*Location, error)
func (InMemorySQLiteMetaStore) GetLocations ¶
func (InMemorySQLiteMetaStore) GetLocationsByIDs ¶
func (InMemorySQLiteMetaStore) GetMappingByKey ¶
func (s InMemorySQLiteMetaStore) GetMappingByKey(ctx context.Context, k MappingKey) (*Mapping, error)
func (InMemorySQLiteMetaStore) GetMappingsByIDs ¶
func (InMemorySQLiteMetaStore) GetSymbolizableLocations ¶
type LocationKey ¶
func MakeLocationKey ¶
func MakeLocationKey(l *Location) LocationKey
type LocationLine ¶ added in v0.4.0
type LocationStore ¶
type LocationStore interface { GetLocationByKey(ctx context.Context, k LocationKey) (*Location, error) GetLocationsByIDs(ctx context.Context, id ...uuid.UUID) (map[uuid.UUID]*Location, error) CreateLocation(ctx context.Context, l *Location) (uuid.UUID, error) Symbolize(ctx context.Context, location *Location) error GetSymbolizableLocations(ctx context.Context) ([]*Location, error) }
type Mapping ¶ added in v0.4.0
type Mapping struct { ID uuid.UUID Start uint64 Limit uint64 Offset uint64 File string BuildID string HasFunctions bool HasFilenames bool HasLineNumbers bool HasInlineFrames bool }
func (*Mapping) Unsymbolizable ¶ added in v0.4.0
Unsymbolizable 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.
type MappingKey ¶
func MakeMappingKey ¶
func MakeMappingKey(m *Mapping) MappingKey
type MappingStore ¶
type OnDiskSQLiteMetaStore ¶
type OnDiskSQLiteMetaStore struct {
// contains filtered or unexported fields
}
func NewDiskProfileMetaStore ¶
func NewDiskProfileMetaStore( reg prometheus.Registerer, tracer trace.Tracer, path ...string, ) (*OnDiskSQLiteMetaStore, error)
func (OnDiskSQLiteMetaStore) CreateFunction ¶
func (OnDiskSQLiteMetaStore) CreateLocation ¶
func (OnDiskSQLiteMetaStore) CreateMapping ¶
func (OnDiskSQLiteMetaStore) GetFunctionByKey ¶
func (s OnDiskSQLiteMetaStore) GetFunctionByKey(ctx context.Context, k FunctionKey) (*Function, error)
func (OnDiskSQLiteMetaStore) GetFunctions ¶
func (OnDiskSQLiteMetaStore) GetLocationByKey ¶
func (s OnDiskSQLiteMetaStore) GetLocationByKey(ctx context.Context, k LocationKey) (*Location, error)
func (OnDiskSQLiteMetaStore) GetLocations ¶
func (OnDiskSQLiteMetaStore) GetLocationsByIDs ¶
func (OnDiskSQLiteMetaStore) GetMappingByKey ¶
func (s OnDiskSQLiteMetaStore) GetMappingByKey(ctx context.Context, k MappingKey) (*Mapping, error)
func (OnDiskSQLiteMetaStore) GetMappingsByIDs ¶
func (OnDiskSQLiteMetaStore) GetSymbolizableLocations ¶
type ProfileMetaStore ¶
type ProfileMetaStore interface { LocationStore FunctionStore MappingStore Close() error Ping() error }
type RemoteMetaStore ¶
type RemoteMetaStore struct {
// contains filtered or unexported fields
}
func NewRemoteProfileMetaStore ¶
func NewRemoteProfileMetaStore(addr string) (*RemoteMetaStore, error)
func (RemoteMetaStore) CreateFunction ¶
func (RemoteMetaStore) CreateLocation ¶
func (RemoteMetaStore) CreateMapping ¶
func (RemoteMetaStore) GetFunctionByKey ¶
func (s RemoteMetaStore) GetFunctionByKey(ctx context.Context, k FunctionKey) (*Function, error)
func (RemoteMetaStore) GetFunctions ¶
func (RemoteMetaStore) GetLocationByKey ¶
func (s RemoteMetaStore) GetLocationByKey(ctx context.Context, k LocationKey) (*Location, error)
func (RemoteMetaStore) GetLocations ¶
func (RemoteMetaStore) GetLocationsByIDs ¶
func (RemoteMetaStore) GetMappingByKey ¶
func (s RemoteMetaStore) GetMappingByKey(ctx context.Context, k MappingKey) (*Mapping, error)
func (RemoteMetaStore) GetMappingsByIDs ¶
func (RemoteMetaStore) GetSymbolizableLocations ¶
Click to show internal directories.
Click to hide internal directories.