Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SampleAggregated mean samples are accumulated in ebpf, no need to dedup these SampleAggregated = SampleAggregation(true) )
View Source
var SampleTypeCpu = SampleType(0)
View Source
var SampleTypeMem = SampleType(1)
Functions ¶
func Collect ¶
func Collect(builders *ProfileBuilders, collector SamplesCollector) error
Types ¶
type BuildersOptions ¶
type CollectProfilesCallback ¶
type CollectProfilesCallback func(sample ProfileSample)
type ProfileBuilder ¶
type ProfileBuilder struct { Profile *profile.Profile Labels labels.Labels // contains filtered or unexported fields }
func (*ProfileBuilder) CreateSample ¶
func (p *ProfileBuilder) CreateSample(inputSample *ProfileSample)
func (*ProfileBuilder) CreateSampleOrAddValue ¶
func (p *ProfileBuilder) CreateSampleOrAddValue(inputSample *ProfileSample)
type ProfileBuilders ¶
type ProfileBuilders struct { Builders map[builderHashKey]*ProfileBuilder // contains filtered or unexported fields }
func NewProfileBuilders ¶
func NewProfileBuilders(options BuildersOptions) *ProfileBuilders
func (*ProfileBuilders) AddSample ¶
func (b *ProfileBuilders) AddSample(sample *ProfileSample)
func (*ProfileBuilders) BuilderForSample ¶
func (b *ProfileBuilders) BuilderForSample(sample *ProfileSample) *ProfileBuilder
type ProfileSample ¶
type ProfileSample struct { Target *sd.Target Pid uint32 SampleType SampleType Aggregation SampleAggregation Stack []string Value uint64 Value2 uint64 }
type SampleAggregation ¶
type SampleAggregation bool
type SampleType ¶
type SampleType uint32
type SamplesCollector ¶
type SamplesCollector interface {
CollectProfiles(callback CollectProfilesCallback) error
}
Click to show internal directories.
Click to hide internal directories.