internal

package
v0.0.0-...-ecff5e9 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

ParseDeepCopy parses the deep copy from the input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeProfileEquals

func TimeProfileEquals(t *testing.T, a *TimeProfile, b *TimeProfile)

func TimeProfileToPprof

func TimeProfileToPprof(deepCopy *TimeProfile,
	excludeProcessesFromStack bool,
	excludeThreadsFromStack bool,
	includeThreadAndProcessIds bool,
	annotations ProcessAnnotationMap) *profile.Profile

TimeProfileToPprof converts a TimeProfile to a pprof Profile.

Types

type Frame

type Frame struct {
	Parent       *Frame
	Children     []*Frame
	SelfWeightNs int64
	SymbolName   string
	Depth        int
}

Frame represnets a frame in the stack.

func (*Frame) String

func (f *Frame) String() string

type Process

type Process struct {
	Name    string
	Pid     uint64
	Threads []*Thread
}

Process are the top level of the stack.

func (*Process) String

func (p *Process) String() string

type ProcessAnnotationMap

type ProcessAnnotationMap map[uint64](string)

ProcessAnnotationMap used for renaming the process based on pid.

func (*ProcessAnnotationMap) Set

func (m *ProcessAnnotationMap) Set(value string) error

func (*ProcessAnnotationMap) String

func (m *ProcessAnnotationMap) String() string

type Thread

type Thread struct {
	Name   string
	Tid    uint64
	Frames []*Frame
}

Thread represents the second level of the stack.

func (*Thread) String

func (t *Thread) String() string

type TimeProfile

type TimeProfile struct {
	Processes []*Process
}

TimeProfile is a set of processes parsed from the deep copy.

Directories

Path Synopsis
sample
ParseDeepCopy parses the deep copy from the input.
ParseDeepCopy parses the deep copy from the input.

Jump to

Keyboard shortcuts

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