profile

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FrameStatusOk           = 0
	FrameStatusErrTruncated = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomLabel added in v0.31.0

type CustomLabel struct {
	Key string
	Val string
}

type Function

type Function struct {
	ModuleName string
	Name       string
	Filename   string
	StartLine  int
	BPFProgID  int
}

func (Function) FullName added in v0.24.0

func (f Function) FullName() string

type InterpreterSymbolTable added in v0.28.0

type InterpreterSymbolTable map[uint32]*Function

type PID

type PID uint32

type ProcessRawData

type ProcessRawData struct {
	PID        PID
	RawSamples []RawSample
}

type RawData

type RawData []ProcessRawData

type RawSample

type RawSample struct {
	TID         PID
	UserStack   []StackFrame
	KernelStack []StackFrame
	// The interpreter stack is formed of the ids we need to fetch
	// from the corresponding BPF map in order to fetch the interpreter
	// frame.
	InterpreterStack []StackFrame
	Value            uint64
	CustomLabels     []CustomLabel
}

type StackFrame added in v0.31.0

type StackFrame struct {
	Addr   uint64
	Status int
}

type Writer

type Writer interface {
	Write(w io.Writer) error
	WriteUncompressed(w io.Writer) error
}

Jump to

Keyboard shortcuts

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