perf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoSymbolFound = errors.New("no symbol found")
)

Functions

This section is empty.

Types

type PerfCache

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

func NewPerfCache

func NewPerfCache(logger log.Logger) *PerfCache

func (*PerfCache) CacheForPid

func (p *PerfCache) CacheForPid(pid uint32) (*PerfMap, error)

CacheForPid returns the PerfMap for the given pid if it exists.

type PerfMap

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

func PerfReadMap

func PerfReadMap(fs fs.FS, fileName string) (PerfMap, error)

func (*PerfMap) Lookup

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

type PerfMapAddr

type PerfMapAddr struct {
	Start  uint64
	End    uint64
	Symbol string
}

Jump to

Keyboard shortcuts

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