stackparse

package
v0.0.0-...-b6b1902 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SuggestedIgnore = []string{
	"signal.init.0",
	"trace.Start",
	"stacklog.Start",
}

SuggestedIgnore are goroutines that we recommend ignoring

Functions

func SameArgs

func SameArgs(a stack.Args, b stack.Args) bool

equal returns true only if both arguments are exactly equal.

Types

type Call

type Call struct {
	StartDelta time.Duration
	EndDelta   time.Duration

	Samples int
	Args    stack.Args
	Name    string
	// contains filtered or unexported fields
}

type GoroutineTimeline

type GoroutineTimeline struct {
	ID        int
	Signature stack.Signature
	Layers    []*Layer
}

type Layer

type Layer struct {
	Calls []*Call
}

type StackSample

type StackSample struct {
	Time    time.Time
	Context *stack.Context
}

func Read

func Read(r io.Reader) ([]*StackSample, error)

Read parses a stack log input

type Timeline

type Timeline struct {
	Start      time.Time
	End        time.Time
	SampleSize int
	Goroutines map[int]*GoroutineTimeline
}

func CreateTimeline

func CreateTimeline(samples []*StackSample, ignoreCreators []string) *Timeline

CreateTimeline creates a timeline from stack samples

Jump to

Keyboard shortcuts

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