perf

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerCyclesAndInstructions

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

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

Types

type Collector added in v1.4.0

type Collector interface{}

type PerfCollector

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

func GetAndStartPerfCollectorOnContainer

func GetAndStartPerfCollectorOnContainer(cgroupFile *os.File, cpus []int) (*PerfCollector, error)

func NewPerfCollector

func NewPerfCollector(cgroupFile *os.File, cpus []int) (*PerfCollector, error)

func (*PerfCollector) CleanUp

func (c *PerfCollector) CleanUp() error

Jump to

Keyboard shortcuts

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