go-torch: github.com/uber/go-torch/stack Index | Files

package stack

import "github.com/uber/go-torch/stack"


Package Files


type Profile Uses

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

Profile represents a parsed pprof profile.

func NewProfile Uses

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

NewProfile returns a new profile with the specified sample names.

type Sample Uses

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

Sample represents the sample count for a specific call stack.

func NewSample Uses

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

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

func (*Sample) Add Uses

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

Add combines counts with the existing counts for this sample.

Package stack imports 2 packages (graph) and is imported by 22 packages. Updated 2017-02-10. Refresh now. Tools for package owners.