pprof

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileBuilder

type ProfileBuilder struct {
	Profile *profile.Profile
	Labels  labels.Labels
	// contains filtered or unexported fields
}

func (*ProfileBuilder) AddSample

func (p *ProfileBuilder) AddSample(stacktrace []string, value uint64)

func (*ProfileBuilder) Write

func (p *ProfileBuilder) Write(dst io.Writer) (int64, error)

type ProfileBuilders

type ProfileBuilders struct {
	Builders   map[uint64]*ProfileBuilder
	SampleRate int
}

func NewProfileBuilders

func NewProfileBuilders(sampleRate int) *ProfileBuilders

func (ProfileBuilders) BuilderForTarget

func (b ProfileBuilders) BuilderForTarget(hash uint64, labels labels.Labels) *ProfileBuilder

Jump to

Keyboard shortcuts

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