perf_group

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CYCLES       = "cycles"
	INSTRUCTIONS = "instructions"
)

Variables

View Source
var (
	BufPools  map[int]*sync.Pool
	EventsMap = map[string][]string{
		"CPICollector": {"cycles", "instructions"},
	}
)

Functions

func GetContainerCyclesAndInstructionsGroup

func GetContainerCyclesAndInstructionsGroup(collector *PerfGroupCollector) (float64, float64, error)

func GetContainerPerfResult

func GetContainerPerfResult(collector *PerfGroupCollector) (map[string]float64, error)

func InitBufferPool

func InitBufferPool(eventsNums map[int]struct{})

func LibFinalize

func LibFinalize()

func LibInit

func LibInit()

Types

type PerfGroupCollector

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

func GetAndStartPerfGroupCollectorOnContainer

func GetAndStartPerfGroupCollectorOnContainer(cgroupFile *os.File, cpus []int, events []string) (*PerfGroupCollector, error)

func NewPerfGroupCollector

func NewPerfGroupCollector(cgroupFile *os.File, cpus []int, events []string, syscallFunc func(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)) (collector *PerfGroupCollector, err error)

first event is group leader

Jump to

Keyboard shortcuts

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