cpu_schedule_latency

package
v0.0.0-...-f9d3faf Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgObjects

type ProgObjects struct {
	Objs *bpfObjects
	// contains filtered or unexported fields
}

func NewCSLeBPFProg

func NewCSLeBPFProg() (*ProgObjects, error)

func (*ProgObjects) DestroyEBPFProg

func (p *ProgObjects) DestroyEBPFProg() (err error)

func (*ProgObjects) GetCgroupScheduleLatencyAvg

func (p *ProgObjects) GetCgroupScheduleLatencyAvg(cgroupNames []string) (map[string]float64, error)

GetCgroupScheduleLatencyAvg get cgroup delay and counter with filtering from cgroupNames. @delay is total delay in nanosecond for all pids within this cgroup in the last time window. @counter is total number of finish_task_switch() is called for all pids within this cgroup in tha last time window. @return each cgroup's average CPU schedule latency in the last time window as the result of @delay / @counter.

Jump to

Keyboard shortcuts

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