Help us shape the future of Go! Take the 2026 Go Developer Survey

process

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewMappingFileCache

func NewMappingFileCache(logger log.Logger) *mappingFileCache

Types

type Map

type Map struct {
	PID     int
	Mapping *profile.Mapping
}

type Mapping

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

func NewMapping

func NewMapping(cache MappingCache) *Mapping

func (*Mapping) MappingsForPID

func (m *Mapping) MappingsForPID(pid int) []*profile.Mapping

func (*Mapping) MapsForPID

func (m *Mapping) MapsForPID(pid int) []Map

func (*Mapping) PIDAddrMapping

func (m *Mapping) PIDAddrMapping(pid int, addr uint64) (*profile.Mapping, error)

type MappingCache

type MappingCache interface {
	MappingForPID(pid int) ([]*profile.Mapping, error)
}

Jump to

Keyboard shortcuts

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