perf

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const CPUID = resource.ID("latest")

CPUID is a resource ID of singleton instance.

View Source
const CPUType = resource.Type("CPUStats.perf.talos.dev")

CPUType is type of Etcd resource.

View Source
const MemoryID = resource.ID("latest")

MemoryID is a resource ID of singleton instance.

View Source
const MemoryType = resource.Type("MemoryStats.perf.talos.dev")

MemoryType is type of Etcd resource.

View Source
const NamespaceName resource.Namespace = "perf"

NamespaceName contains resources related to stats.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU = typed.Resource[CPUSpec, CPURD]

CPU represents the last CPU stats snapshot.

func NewCPU

func NewCPU() *CPU

NewCPU creates new default CPU stats object.

type CPURD

type CPURD struct{}

CPURD is an auxiliary type for CPU resource.

func (CPURD) ResourceDefinition

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

type CPUSpec

type CPUSpec struct {
	CPU             []CPUStat `yaml:"cpu" protobuf:"1"`
	CPUTotal        CPUStat   `yaml:"cpuTotal" protobuf:"2"`
	IRQTotal        uint64    `yaml:"irqTotal" protobuf:"3"`
	ContextSwitches uint64    `yaml:"contextSwitches" protobuf:"4"`
	ProcessCreated  uint64    `yaml:"processCreated" protobuf:"5"`
	ProcessRunning  uint64    `yaml:"processRunning" protobuf:"6"`
	ProcessBlocked  uint64    `yaml:"processBlocked" protobuf:"7"`
	SoftIrqTotal    uint64    `yaml:"softIrqTotal" protobuf:"8"`
}

CPUSpec represents the last CPU stats snapshot.

func (CPUSpec) DeepCopy

func (o CPUSpec) DeepCopy() CPUSpec

DeepCopy generates a deep copy of CPUSpec.

type CPUStat

type CPUStat struct {
	User      float64 `yaml:"user" protobuf:"1"`
	Nice      float64 `yaml:"nice" protobuf:"2"`
	System    float64 `yaml:"system" protobuf:"3"`
	Idle      float64 `yaml:"idle" protobuf:"4"`
	Iowait    float64 `yaml:"iowait" protobuf:"5"`
	Irq       float64 `yaml:"irq" protobuf:"6"`
	SoftIrq   float64 `yaml:"softIrq" protobuf:"7"`
	Steal     float64 `yaml:"steal" protobuf:"8"`
	Guest     float64 `yaml:"guest" protobuf:"9"`
	GuestNice float64 `yaml:"guestNice" protobuf:"10"`
}

CPUStat represents a single cpu stat.

type Memory

type Memory = typed.Resource[MemorySpec, MemoryRD]

Memory represents the last Memory stats snapshot.

func NewMemory

func NewMemory() *Memory

NewMemory creates new default Memory stats object.

type MemoryRD

type MemoryRD struct{}

MemoryRD is an auxiliary type for Memory resource.

func (MemoryRD) ResourceDefinition

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

type MemorySpec

type MemorySpec struct {
	MemTotal          uint64 `yaml:"total" protobuf:"1"`
	MemUsed           uint64 `yaml:"used" protobuf:"2"`
	MemAvailable      uint64 `yaml:"available" protobuf:"3"`
	Buffers           uint64 `yaml:"buffers" protobuf:"4"`
	Cached            uint64 `yaml:"cached" protobuf:"5"`
	SwapCached        uint64 `yaml:"swapCached" protobuf:"6"`
	Active            uint64 `yaml:"active" protobuf:"7"`
	Inactive          uint64 `yaml:"inactive" protobuf:"8"`
	ActiveAnon        uint64 `yaml:"activeAnon" protobuf:"9"`
	InactiveAnon      uint64 `yaml:"inactiveAnon" protobuf:"10"`
	ActiveFile        uint64 `yaml:"activeFile" protobuf:"11"`
	InactiveFile      uint64 `yaml:"inactiveFile" protobuf:"12"`
	Unevictable       uint64 `yaml:"unevictable" protobuf:"13"`
	Mlocked           uint64 `yaml:"mlocked" protobuf:"14"`
	SwapTotal         uint64 `yaml:"swapTotal" protobuf:"15"`
	SwapFree          uint64 `yaml:"swapFree" protobuf:"16"`
	Dirty             uint64 `yaml:"dirty" protobuf:"17"`
	Writeback         uint64 `yaml:"writeback" protobuf:"18"`
	AnonPages         uint64 `yaml:"anonPages" protobuf:"19"`
	Mapped            uint64 `yaml:"mapped" protobuf:"20"`
	Shmem             uint64 `yaml:"shmem" protobuf:"21"`
	Slab              uint64 `yaml:"slab" protobuf:"22"`
	SReclaimable      uint64 `yaml:"sreclaimable" protobuf:"23"`
	SUnreclaim        uint64 `yaml:"sunreclaim" protobuf:"24"`
	KernelStack       uint64 `yaml:"kernelStack" protobuf:"25"`
	PageTables        uint64 `yaml:"pageTables" protobuf:"26"`
	NFSunstable       uint64 `yaml:"nfsunstable" protobuf:"27"`
	Bounce            uint64 `yaml:"bounce" protobuf:"28"`
	WritebackTmp      uint64 `yaml:"writeBacktmp" protobuf:"29"`
	CommitLimit       uint64 `yaml:"commitLimit" protobuf:"30"`
	CommittedAS       uint64 `yaml:"commitTedas" protobuf:"31"`
	VmallocTotal      uint64 `yaml:"vmallocTotal" protobuf:"32"`
	VmallocUsed       uint64 `yaml:"vmallocUsed" protobuf:"33"`
	VmallocChunk      uint64 `yaml:"vmallocChunk" protobuf:"34"`
	HardwareCorrupted uint64 `yaml:"hardwareCorrupted" protobuf:"35"`
	AnonHugePages     uint64 `yaml:"anonHugePages" protobuf:"36"`
	ShmemHugePages    uint64 `yaml:"shmemHugePages" protobuf:"37"`
	ShmemPmdMapped    uint64 `yaml:"shmemPmdMapped" protobuf:"38"`
	CmaTotal          uint64 `yaml:"cmaTotal" protobuf:"39"`
	CmaFree           uint64 `yaml:"cmaFree" protobuf:"40"`
	HugePagesTotal    uint64 `yaml:"hugePagesTotal" protobuf:"41"`
	HugePagesFree     uint64 `yaml:"hugePagesFree" protobuf:"42"`
	HugePagesRsvd     uint64 `yaml:"hugePagesRsvd" protobuf:"43"`
	HugePagesSurp     uint64 `yaml:"hugePagesSurp" protobuf:"44"`
	Hugepagesize      uint64 `yaml:"hugepagesize" protobuf:"45"`
	DirectMap4k       uint64 `yaml:"directMap4k" protobuf:"46"`
	DirectMap2m       uint64 `yaml:"directMap2m" protobuf:"47"`
	DirectMap1g       uint64 `yaml:"directMap1g" protobuf:"48"`
}

MemorySpec represents the last Memory stats snapshot.

func (MemorySpec) DeepCopy

func (o MemorySpec) DeepCopy() MemorySpec

DeepCopy generates a deep copy of MemorySpec.

Jump to

Keyboard shortcuts

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