stack

package
v0.0.0-...-9a57a4e Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	SampleNames []string
	Samples     []*Sample
}

Profile represents a parsed pprof profile.

func NewProfile

func NewProfile(names []string) (*Profile, error)

NewProfile returns a new profile with the specified sample names.

type Sample

type Sample struct {
	// Funcs is parent first.
	Funcs  []string
	Counts []int64
}

Sample represents the sample count for a specific call stack.

func NewSample

func NewSample(funcs []string, counts []int64) *Sample

NewSample returns a new sample with a copy of the counts.

func (*Sample) Add

func (s *Sample) Add(counts []int64) error

Add combines counts with the existing counts for this sample.

Jump to

Keyboard shortcuts

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