Versions in this module Expand all Collapse all v0 v0.21.0 Feb 27, 2024 Changes in this version + const UnsymolizableLocationAddress + var ErrMissingNameLabel = errors.New("missing __name__ label") + func CalculateBase(ei *profilestorepb.ExecutableInfo, start, limit, offset uint64) (uint64, error) + func LabelNamesFromSamples(takenLabels map[string]string, stringTable []string, samples []*pprofpb.Sample, ...) + func LabelsFromSample(takenLabels map[string]string, stringTable []string, plabels []*pprofpb.Label) (map[string]string, map[string]int64) + func NormalizeAddress(addr uint64, ei *profilestorepb.ExecutableInfo, start, limit, offset uint64) (uint64, error) + func ValidatePprofProfile(p *pprofpb.Profile, ei []*profilestorepb.ExecutableInfo) error + type MetastoreNormalizer struct + func NewNormalizer(metastore pb.MetastoreServiceClient, enableAddressNormalization bool, ...) *MetastoreNormalizer + func (n *MetastoreNormalizer) NormalizeFunctions(ctx context.Context, functions []*pprofpb.Function, stringTable []string) ([]*pb.Function, error) + func (n *MetastoreNormalizer) NormalizeLocations(ctx context.Context, locations []*pprofpb.Location, ...) ([]*pb.Location, error) + func (n *MetastoreNormalizer) NormalizeMappings(ctx context.Context, mappings []*pprofpb.Mapping, stringTable []string) ([]mappingNormalizationInfo, error) + func (n *MetastoreNormalizer) NormalizePprof(ctx context.Context, name string, takenLabelNames map[string]string, ...) ([]*profile.NormalizedProfile, error) + func (n *MetastoreNormalizer) NormalizeStacktraces(ctx context.Context, samples []*pprofpb.Sample, locations []*pb.Location) ([]*pb.Stacktrace, error) + func (n *MetastoreNormalizer) NormalizeWriteRawRequest(ctx context.Context, req *profilestorepb.WriteRawRequest) (NormalizedWriteRawRequest, error) + type NormalizedWriteRawRequest struct + AllLabelNames []string + AllPprofLabelNames []string + AllPprofNumLabelNames []string + Series []Series + type Normalizer interface + NormalizePprof func(ctx context.Context, name string, takenLabelNames map[string]string, ...) ([]*profile.NormalizedProfile, error) + NormalizeWriteRawRequest func(ctx context.Context, req *profilestorepb.WriteRawRequest) (NormalizedWriteRawRequest, error) + type Series struct + Labels map[string]string + Samples [][]*profile.NormalizedProfile