pprof

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 11 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(*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, labels map[string]string, config map[string]*tree.SampleTypeConfig) *ProfileWriter

func (*ProfileWriter) Reset

func (w *ProfileWriter) Reset()

func (*ProfileWriter) WriteProfile

func (w *ProfileWriter) WriteProfile(startTime, endTime time.Time, spyName string, p *tree.Profile) error

Jump to

Keyboard shortcuts

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