Documentation
¶
Index ¶
- Variables
- type Context
- func (*Context) Descriptor() ([]byte, []int)deprecated
- func (x *Context) GetLabels() map[int64]int64
- func (m *Context) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Context) MarshalToVT(dAtA []byte) (int, error)
- func (m *Context) MarshalVT() (dAtA []byte, err error)
- func (*Context) ProtoMessage()
- func (x *Context) ProtoReflect() protoreflect.Message
- func (x *Context) Reset()
- func (m *Context) SizeVT() (n int)
- func (x *Context) String() string
- func (m *Context) UnmarshalVT(dAtA []byte) error
- type ExternalFunctionID
- type ExternalLocationID
- type Labels
- type LabelsSnapshot
- func (*LabelsSnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *LabelsSnapshot) GetContexts() map[int64]*Context
- func (x *LabelsSnapshot) GetStrings() map[int64]string
- func (m *LabelsSnapshot) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LabelsSnapshot) MarshalToVT(dAtA []byte) (int, error)
- func (m *LabelsSnapshot) MarshalVT() (dAtA []byte, err error)
- func (*LabelsSnapshot) ProtoMessage()
- func (x *LabelsSnapshot) ProtoReflect() protoreflect.Message
- func (x *LabelsSnapshot) Reset()
- func (m *LabelsSnapshot) SizeVT() (n int)
- func (x *LabelsSnapshot) String() string
- func (m *LabelsSnapshot) UnmarshalVT(dAtA []byte) error
- type Option
- type PPROFFunctionID
- type PPROFLocationID
- type ParseInput
- type ParseMetrics
- type Profile
- type ProfileBuilder
- func (m *ProfileBuilder) AddExternalFunction(frame string, id ExternalFunctionID) PPROFFunctionID
- func (m *ProfileBuilder) AddExternalLocation(id ExternalLocationID, pprofFunctionID PPROFFunctionID) PPROFLocationID
- func (m *ProfileBuilder) AddExternalSampleWithLabels(locs []uint64, values []int64, labelsCtx *Context, ...)
- func (m *ProfileBuilder) AddSampleType(typ, unit string)
- func (m *ProfileBuilder) FindExternalSampleWithCorrelation(locationsID uint64, correlation StacktraceCorrelation) *profilev1.Sample
- func (m *ProfileBuilder) FindExternalSampleWithLabels(locationsID uint64, correlation StacktraceCorrelation) *profilev1.Sample
- func (m *ProfileBuilder) FindFunctionByExternalID(externalFunctionID ExternalFunctionID) (PPROFFunctionID, bool)
- func (m *ProfileBuilder) FindLocationByExternalID(externalLocationID ExternalLocationID) (PPROFLocationID, bool)
- func (m *ProfileBuilder) MetricName(name string)
- func (m *ProfileBuilder) PeriodType(periodType string, periodUnit string)
- type Profiles
- type StacktraceCorrelation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var File_og_convert_jfr_jfr_labels_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Labels map[int64]int64 `` /* 155-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Context) Descriptor
deprecated
func (*Context) MarshalToSizedBufferVT ¶
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
func (*Context) ProtoReflect ¶
func (x *Context) ProtoReflect() protoreflect.Message
func (*Context) UnmarshalVT ¶
type ExternalFunctionID ¶
type ExternalFunctionID uint32
type ExternalLocationID ¶
type ExternalLocationID struct {
ExternalFunctionID ExternalFunctionID
Line uint32
}
type LabelsSnapshot ¶
type LabelsSnapshot struct {
Contexts map[int64]*Context `` /* 158-byte string literal not displayed */
Strings map[int64]string `` /* 156-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*LabelsSnapshot) Descriptor
deprecated
func (*LabelsSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use LabelsSnapshot.ProtoReflect.Descriptor instead.
func (*LabelsSnapshot) GetContexts ¶
func (x *LabelsSnapshot) GetContexts() map[int64]*Context
func (*LabelsSnapshot) GetStrings ¶
func (x *LabelsSnapshot) GetStrings() map[int64]string
func (*LabelsSnapshot) MarshalToSizedBufferVT ¶
func (m *LabelsSnapshot) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LabelsSnapshot) MarshalToVT ¶
func (m *LabelsSnapshot) MarshalToVT(dAtA []byte) (int, error)
func (*LabelsSnapshot) MarshalVT ¶
func (m *LabelsSnapshot) MarshalVT() (dAtA []byte, err error)
func (*LabelsSnapshot) ProtoMessage ¶
func (*LabelsSnapshot) ProtoMessage()
func (*LabelsSnapshot) ProtoReflect ¶
func (x *LabelsSnapshot) ProtoReflect() protoreflect.Message
func (*LabelsSnapshot) Reset ¶
func (x *LabelsSnapshot) Reset()
func (*LabelsSnapshot) SizeVT ¶
func (m *LabelsSnapshot) SizeVT() (n int)
func (*LabelsSnapshot) String ¶
func (x *LabelsSnapshot) String() string
func (*LabelsSnapshot) UnmarshalVT ¶
func (m *LabelsSnapshot) UnmarshalVT(dAtA []byte) error
type Option ¶ added in v0.0.7
type Option func(*pprofOptions)
func WithTruncatedFrame ¶ added in v0.0.7
type PPROFFunctionID ¶
type PPROFFunctionID uint64
type PPROFLocationID ¶
type PPROFLocationID uint64
type ParseMetrics ¶ added in v0.0.7
type ProfileBuilder ¶
func NewProfileBuilderWithLabels ¶
func NewProfileBuilderWithLabels(ts int64) *ProfileBuilder
NewProfileBuilderWithLabels creates a new ProfileBuilder with the given nanoseconds timestamp and labels.
func (*ProfileBuilder) AddExternalFunction ¶
func (m *ProfileBuilder) AddExternalFunction(frame string, id ExternalFunctionID) PPROFFunctionID
func (*ProfileBuilder) AddExternalLocation ¶
func (m *ProfileBuilder) AddExternalLocation(id ExternalLocationID, pprofFunctionID PPROFFunctionID) PPROFLocationID
func (*ProfileBuilder) AddExternalSampleWithLabels ¶
func (m *ProfileBuilder) AddExternalSampleWithLabels(locs []uint64, values []int64, labelsCtx *Context, labelsSnapshot *LabelsSnapshot, locationsID uint64, correlation StacktraceCorrelation)
func (*ProfileBuilder) AddSampleType ¶
func (m *ProfileBuilder) AddSampleType(typ, unit string)
func (*ProfileBuilder) FindExternalSampleWithCorrelation ¶ added in v0.0.7
func (m *ProfileBuilder) FindExternalSampleWithCorrelation(locationsID uint64, correlation StacktraceCorrelation) *profilev1.Sample
func (*ProfileBuilder) FindExternalSampleWithLabels ¶
func (m *ProfileBuilder) FindExternalSampleWithLabels(locationsID uint64, correlation StacktraceCorrelation) *profilev1.Sample
FindExternalSampleWithLabels deprecated
func (*ProfileBuilder) FindFunctionByExternalID ¶
func (m *ProfileBuilder) FindFunctionByExternalID(externalFunctionID ExternalFunctionID) (PPROFFunctionID, bool)
func (*ProfileBuilder) FindLocationByExternalID ¶
func (m *ProfileBuilder) FindLocationByExternalID(externalLocationID ExternalLocationID) (PPROFLocationID, bool)
func (*ProfileBuilder) MetricName ¶
func (m *ProfileBuilder) MetricName(name string)
func (*ProfileBuilder) PeriodType ¶
func (m *ProfileBuilder) PeriodType(periodType string, periodUnit string)
type Profiles ¶
type Profiles struct {
Profiles []Profile
JFREvent string
ParseMetrics ParseMetrics
}
func ParseJFR ¶
func ParseJFR(body []byte, pi *ParseInput, jfrLabels *LabelsSnapshot, opts ...Option) (res *Profiles, err error)
type StacktraceCorrelation ¶ added in v0.0.5
Source Files
¶
Click to show internal directories.
Click to hide internal directories.