pprof

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetLabels

func (x *Context) GetLabels() map[int64]int64

func (*Context) MarshalToSizedBufferVT

func (m *Context) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Context) MarshalToVT

func (m *Context) MarshalToVT(dAtA []byte) (int, error)

func (*Context) MarshalVT

func (m *Context) MarshalVT() (dAtA []byte, err error)

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

func (x *Context) ProtoReflect() protoreflect.Message

func (*Context) Reset

func (x *Context) Reset()

func (*Context) SizeVT

func (m *Context) SizeVT() (n int)

func (*Context) String

func (x *Context) String() string

func (*Context) UnmarshalVT

func (m *Context) UnmarshalVT(dAtA []byte) error

type ExternalFunctionID

type ExternalFunctionID uint32

type ExternalLocationID

type ExternalLocationID struct {
	ExternalFunctionID ExternalFunctionID
	Line               uint32
}

type Labels

type Labels []*typesv1.LabelPair

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 PPROFFunctionID

type PPROFFunctionID uint64

type PPROFLocationID

type PPROFLocationID uint64

type ParseInput

type ParseInput struct {
	StartTime  time.Time
	EndTime    time.Time
	SampleRate int64
}

type Profile

type Profile struct {
	Profile *profilev1.Profile
	Metric  string
}

type ProfileBuilder

type ProfileBuilder struct {
	*profilev1.Profile
	// contains filtered or unexported fields
}

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) AddExternalSample

func (m *ProfileBuilder) AddExternalSample(locs []uint64, values []int64, externalSampleID uint32)

func (*ProfileBuilder) AddExternalSampleWithLabels

func (m *ProfileBuilder) AddExternalSampleWithLabels(locs []uint64, values []int64, labelsCtx *Context, labelsSnapshot *LabelsSnapshot, locationsID, labelsID uint64)

func (*ProfileBuilder) AddSampleType

func (m *ProfileBuilder) AddSampleType(typ, unit string)

func (*ProfileBuilder) FindExternalSample

func (m *ProfileBuilder) FindExternalSample(externalSampleID uint32) *profilev1.Sample

func (*ProfileBuilder) FindExternalSampleWithLabels

func (m *ProfileBuilder) FindExternalSampleWithLabels(locationsID, labelsID uint64) *profilev1.Sample

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
}

func ParseJFR

func ParseJFR(body []byte, pi *ParseInput, jfrLabels *LabelsSnapshot) (res *Profiles, err error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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