Documentation
¶
Index ¶
- Constants
- func FunctionIDFromKey(key string) string
- func LocationIDFromKey(key string) string
- func LocationIDFromUnsymbolizedKey(key string) string
- func MakeFunctionKeyWithID(functionID string) string
- func MakeLocationKeyWithID(locationID string) string
- func MakeMappingKeyWithID(mappingID string) string
- func MakeStacktraceKeyWithID(stacktraceID string) string
- func MakeUnsymbolizedLocationKeyWithID(locationID string) string
- func MappingIDFromKey(key string) string
- func StacktraceIDFromKey(key string) string
- type KeyMaker
- func (m *KeyMaker) MakeFunctionID(f *pb.Function) string
- func (m *KeyMaker) MakeFunctionKey(f *pb.Function) string
- func (m *KeyMaker) MakeLocationID(l *pb.Location) string
- func (m *KeyMaker) MakeLocationKey(l *pb.Location) string
- func (m *KeyMaker) MakeMappingID(mp *pb.Mapping) string
- func (m *KeyMaker) MakeMappingKey(mp *pb.Mapping) string
- func (m *KeyMaker) MakeProfileLocationID(l *profile.Location) string
- func (m *KeyMaker) MakeStacktraceID(s *pb.Stacktrace) string
- func (m *KeyMaker) MakeStacktraceKey(s *pb.Stacktrace) string
Constants ¶
const UnsymbolizedLocationLinesKeyPrefix = "v1/unsymbolized-locations/by-key/"
Unsymbolized locations are namespaced by their mapping ID. `v1/unsymbolized-locations/by-key/<hashed-mapping-key>/<hashed-location-key>`.
Variables ¶
This section is empty.
Functions ¶
func FunctionIDFromKey ¶
FunctionIDFromKey returns the function ID portion of the provided key.
func LocationIDFromKey ¶
LocationIDFromKey returns the location ID portion of the provided key.
func LocationIDFromUnsymbolizedKey ¶
LocationIDFromUnsymbolizedKey returns the location ID portion of the provided key.
func MakeFunctionKeyWithID ¶
MakeFunctionKeyWithID returns the key to be used to store/lookup a function with the provided ID in a key-value store.
func MakeLocationKeyWithID ¶
MakeLocationKeyWithID returns the key to be used to store/lookup a location with the provided ID in a key-value store.
func MakeMappingKeyWithID ¶
MakeMappingKeyWithID returns the key to be used to store/lookup a mapping with the provided ID in a key-value store.
func MakeStacktraceKeyWithID ¶
MakeStacktraceKeyWithID returns the key to be used to store/lookup a mapping with the provided ID in a key-value store.
func MakeUnsymbolizedLocationKeyWithID ¶
MakeUnsymbolizedLocationKeyWithID returns the key to be used to store/lookup an unsymbolized location.
func MappingIDFromKey ¶
MappingIDFromKey returns the mapping ID portion of the provided key.
func StacktraceIDFromKey ¶
StacktraceIDFromKey returns the mapping ID portion of the provided key.
Types ¶
type KeyMaker ¶
type KeyMaker struct {
// contains filtered or unexported fields
}
KeyMaker is responsible for creating keys used in BadgerMetastore.
func NewKeyMaker ¶
func NewKeyMaker() *KeyMaker
func (*KeyMaker) MakeFunctionID ¶
MakeFunctionID returns a key for the function. Functions are uniquely identified by their name, filename, starting line number and system name.
func (*KeyMaker) MakeFunctionKey ¶
MakeFunctionKey returns the key to be used to store/lookup the function in a key-value store.
func (*KeyMaker) MakeLocationID ¶
MakeLocationID returns a key for the location that uniquely identifies the location. Locations are uniquely identified by their mapping ID and their address and whether the address is folded. If a location address is 0, then the lines are expected to be non empty and to be already resolved as they cannot be asynchronously symbolized. The lines are then taken into the location key.
func (*KeyMaker) MakeLocationKey ¶
MakeLocationKey returns the key to be used to store/lookup the location in a key-value store.
func (*KeyMaker) MakeMappingID ¶
MakeMappingID returns a key for the mapping. Mappings are uniquely identified by their build id (or file if build id is not available), their size, and offset.
func (*KeyMaker) MakeMappingKey ¶
MakeMappingKey returns the key to be used to store/lookup the mapping in a key-value store.
func (*KeyMaker) MakeProfileLocationID ¶
func (*KeyMaker) MakeStacktraceID ¶
func (m *KeyMaker) MakeStacktraceID(s *pb.Stacktrace) string
MakeStacktraceID returns a key for the stacktrace. Stacktraces are uniquely identified by their unique combination and order of locations.
func (*KeyMaker) MakeStacktraceKey ¶
func (m *KeyMaker) MakeStacktraceKey(s *pb.Stacktrace) string
MakeStacktraceKey returns the key to be used to store/lookup the mapping in a key-value store.