perf

package
v0.9.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound      = errors.New("not found")
	ErrNoSymbolFound = errors.New("no symbol found")
)

Functions

This section is empty.

Types

type Cache added in v0.6.0

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

func NewPerfCache

func NewPerfCache(logger log.Logger) *Cache

func (*Cache) CacheForPID added in v0.6.0

func (p *Cache) CacheForPID(pid uint32) (*Map, error)

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

type Map added in v0.6.0

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

func ReadMap added in v0.6.0

func ReadMap(fs fs.FS, fileName string) (Map, error)

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
}

Jump to

Keyboard shortcuts

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