pprof

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSampleTypes

func AllSampleTypes(string) bool

func Decode

func Decode(r io.Reader, p *tree.Profile) error

func DecodePool

func DecodePool(r io.Reader, fn func(*tree.Profile) error) error

Types

type Ingester

type Ingester interface {
	Enqueue(context.Context, *storage.PutInput)
}

type ProfileReader

type ProfileReader struct {
	// contains filtered or unexported fields
}

func NewProfileReader

func NewProfileReader() *ProfileReader

func (*ProfileReader) Load

func (r *ProfileReader) Load(sampleType int64, labels tree.Labels) (*tree.Tree, bool)

func (*ProfileReader) Read

func (r *ProfileReader) Read(x *tree.Profile, fn func(vt *tree.ValueType, l tree.Labels, t *tree.Tree) (keep bool, err error)) error

func (*ProfileReader) Reset

func (r *ProfileReader) Reset()

func (*ProfileReader) SampleTypeFilter

func (r *ProfileReader) SampleTypeFilter(fn func(string) bool) *ProfileReader

type ProfileWriter

type ProfileWriter struct {
	// contains filtered or unexported fields
}

func NewProfileWriter

func NewProfileWriter(ingester Ingester, config ProfileWriterConfig) *ProfileWriter

func (*ProfileWriter) Reset

func (w *ProfileWriter) Reset()

func (*ProfileWriter) WriteProfile

func (w *ProfileWriter) WriteProfile(ctx context.Context, startTime, endTime time.Time, p *tree.Profile) error

type ProfileWriterConfig added in v0.14.0

type ProfileWriterConfig struct {
	SpyName     string
	Labels      map[string]string
	SampleTypes map[string]*tree.SampleTypeConfig
}

Jump to

Keyboard shortcuts

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