perf

package
v0.25.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPerfMapNotFound = errors.New("perf-map not found")
	ErrProcNotFound    = errors.New("process not found")
)
View Source
var ErrJITDumpNotFound = errors.New("jitdump not found")
View Source
var ErrNoSymbolFound = errors.New("no symbol found")

Functions

This section is empty.

Types

type JitdumpCache added in v0.20.0

type JitdumpCache struct {
	// contains filtered or unexported fields
}

func NewJitdumpCache added in v0.20.0

func NewJitdumpCache(logger log.Logger, reg prometheus.Registerer, profilingDuration time.Duration) *JitdumpCache

func (*JitdumpCache) JitdumpForPID added in v0.20.0

func (p *JitdumpCache) JitdumpForPID(pid int, path string) (*Map, error)

DumpForPID reads the JIT dump for the given PID and filename and returns a Map that can be queried.

type Map added in v0.6.0

type Map struct {
	// contains filtered or unexported fields
}

func ReadJitdump added in v0.20.0

func ReadJitdump(logger log.Logger, fileName string) (Map, error)

func ReadPerfMap added in v0.20.0

func ReadPerfMap(
	logger log.Logger,
	fileName string,
) (*Map, error)

func (*Map) Deduplicate added in v0.24.0

func (p *Map) Deduplicate() *Map

func (*Map) Lookup added in v0.6.0

func (p *Map) Lookup(addr uint64) (string, error)

type MapAddr added in v0.6.0

type MapAddr struct {
	Start  uint64
	End    uint64
	Symbol string
}

type PerfMapCache added in v0.20.0

type PerfMapCache struct {
	// contains filtered or unexported fields
}

func NewPerfMapCache added in v0.20.0

func NewPerfMapCache(logger log.Logger, reg prometheus.Registerer, nsCache *namespace.Cache, profilingDuration time.Duration) *PerfMapCache

func (*PerfMapCache) PerfMapForPID added in v0.20.0

func (p *PerfMapCache) PerfMapForPID(pid int) (*Map, error)

MapForPID returns the Map for the given pid if it exists.

Jump to

Keyboard shortcuts

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