pprof_split

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VisitSampleSeries

func VisitSampleSeries(
	profile *profilev1.Profile,
	labels []*typesv1.LabelPair,
	rules []*relabel.Config,
	visitor SampleSeriesVisitor,
) error

func VisitSampleSeriesBy added in v1.14.0

func VisitSampleSeriesBy(
	profile *profilev1.Profile,
	labels phlaremodel.Labels,
	rules []*relabel.Config,
	visitor SampleSeriesVisitor,
	names ...string,
) error

VisitSampleSeriesBy visits samples in a profile, splitting them by the specified labels. Labels shared by all samples in a group (intersection) are passed to the visitor, while the rest of the labels are added to each sample.

Types

type SampleSeriesVisitor

type SampleSeriesVisitor interface {
	// VisitProfile is called when no sample labels are present in
	// the profile, or if all the sample labels are identical.
	// Provided labels are the series labels processed with relabeling rules.
	VisitProfile(phlaremodel.Labels)
	VisitSampleSeries(phlaremodel.Labels, []*profilev1.Sample)
	// ValidateLabels is called to validate the labels before
	// they are passed to the visitor.
	ValidateLabels(phlaremodel.Labels) error
	Discarded(profiles, bytes int)
}

Jump to

Keyboard shortcuts

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