perf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

todo: add readme

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerCyclesAndInstructions

func GetContainerCyclesAndInstructions(collector *PerfCollector) (uint64, uint64, error)

todo: call collect() to get all metrics at the same time instead of put it inside GetContainerCyclesAndInstructions

Types

type PerfCollector

type PerfCollector struct {
	CgroupFd int
	// contains filtered or unexported fields
}

func GetAndStartPerfCollectorOnContainer

func GetAndStartPerfCollectorOnContainer(cgroupFd int, cpus []int) (*PerfCollector, error)

func NewPerfCollector

func NewPerfCollector(cgroupFd int, cpus []int) (*PerfCollector, error)

Jump to

Keyboard shortcuts

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