perf

package
v1.7.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resource_definitions_perf_perf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CPUSpec

type CPUSpec struct {
	Cpu             []*CPUStat `protobuf:"bytes,1,rep,name=cpu,proto3" json:"cpu,omitempty"`
	CpuTotal        *CPUStat   `protobuf:"bytes,2,opt,name=cpu_total,json=cpuTotal,proto3" json:"cpu_total,omitempty"`
	IrqTotal        uint64     `protobuf:"varint,3,opt,name=irq_total,json=irqTotal,proto3" json:"irq_total,omitempty"`
	ContextSwitches uint64     `protobuf:"varint,4,opt,name=context_switches,json=contextSwitches,proto3" json:"context_switches,omitempty"`
	ProcessCreated  uint64     `protobuf:"varint,5,opt,name=process_created,json=processCreated,proto3" json:"process_created,omitempty"`
	ProcessRunning  uint64     `protobuf:"varint,6,opt,name=process_running,json=processRunning,proto3" json:"process_running,omitempty"`
	ProcessBlocked  uint64     `protobuf:"varint,7,opt,name=process_blocked,json=processBlocked,proto3" json:"process_blocked,omitempty"`
	SoftIrqTotal    uint64     `protobuf:"varint,8,opt,name=soft_irq_total,json=softIrqTotal,proto3" json:"soft_irq_total,omitempty"`
	// contains filtered or unexported fields
}

CPUSpec represents the last CPU stats snapshot.

func (*CPUSpec) Descriptor deprecated

func (*CPUSpec) Descriptor() ([]byte, []int)

Deprecated: Use CPUSpec.ProtoReflect.Descriptor instead.

func (*CPUSpec) GetContextSwitches

func (x *CPUSpec) GetContextSwitches() uint64

func (*CPUSpec) GetCpu

func (x *CPUSpec) GetCpu() []*CPUStat

func (*CPUSpec) GetCpuTotal

func (x *CPUSpec) GetCpuTotal() *CPUStat

func (*CPUSpec) GetIrqTotal

func (x *CPUSpec) GetIrqTotal() uint64

func (*CPUSpec) GetProcessBlocked

func (x *CPUSpec) GetProcessBlocked() uint64

func (*CPUSpec) GetProcessCreated

func (x *CPUSpec) GetProcessCreated() uint64

func (*CPUSpec) GetProcessRunning

func (x *CPUSpec) GetProcessRunning() uint64

func (*CPUSpec) GetSoftIrqTotal

func (x *CPUSpec) GetSoftIrqTotal() uint64

func (*CPUSpec) MarshalToSizedBufferVT

func (m *CPUSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CPUSpec) MarshalToVT

func (m *CPUSpec) MarshalToVT(dAtA []byte) (int, error)

func (*CPUSpec) MarshalVT

func (m *CPUSpec) MarshalVT() (dAtA []byte, err error)

func (*CPUSpec) ProtoMessage

func (*CPUSpec) ProtoMessage()

func (*CPUSpec) ProtoReflect

func (x *CPUSpec) ProtoReflect() protoreflect.Message

func (*CPUSpec) Reset

func (x *CPUSpec) Reset()

func (*CPUSpec) SizeVT

func (m *CPUSpec) SizeVT() (n int)

func (*CPUSpec) String

func (x *CPUSpec) String() string

func (*CPUSpec) UnmarshalVT

func (m *CPUSpec) UnmarshalVT(dAtA []byte) error

type CPUStat

type CPUStat struct {
	User      float64 `protobuf:"fixed64,1,opt,name=user,proto3" json:"user,omitempty"`
	Nice      float64 `protobuf:"fixed64,2,opt,name=nice,proto3" json:"nice,omitempty"`
	System    float64 `protobuf:"fixed64,3,opt,name=system,proto3" json:"system,omitempty"`
	Idle      float64 `protobuf:"fixed64,4,opt,name=idle,proto3" json:"idle,omitempty"`
	Iowait    float64 `protobuf:"fixed64,5,opt,name=iowait,proto3" json:"iowait,omitempty"`
	Irq       float64 `protobuf:"fixed64,6,opt,name=irq,proto3" json:"irq,omitempty"`
	SoftIrq   float64 `protobuf:"fixed64,7,opt,name=soft_irq,json=softIrq,proto3" json:"soft_irq,omitempty"`
	Steal     float64 `protobuf:"fixed64,8,opt,name=steal,proto3" json:"steal,omitempty"`
	Guest     float64 `protobuf:"fixed64,9,opt,name=guest,proto3" json:"guest,omitempty"`
	GuestNice float64 `protobuf:"fixed64,10,opt,name=guest_nice,json=guestNice,proto3" json:"guest_nice,omitempty"`
	// contains filtered or unexported fields
}

CPUStat represents a single cpu stat.

func (*CPUStat) Descriptor deprecated

func (*CPUStat) Descriptor() ([]byte, []int)

Deprecated: Use CPUStat.ProtoReflect.Descriptor instead.

func (*CPUStat) GetGuest

func (x *CPUStat) GetGuest() float64

func (*CPUStat) GetGuestNice

func (x *CPUStat) GetGuestNice() float64

func (*CPUStat) GetIdle

func (x *CPUStat) GetIdle() float64

func (*CPUStat) GetIowait

func (x *CPUStat) GetIowait() float64

func (*CPUStat) GetIrq

func (x *CPUStat) GetIrq() float64

func (*CPUStat) GetNice

func (x *CPUStat) GetNice() float64

func (*CPUStat) GetSoftIrq

func (x *CPUStat) GetSoftIrq() float64

func (*CPUStat) GetSteal

func (x *CPUStat) GetSteal() float64

func (*CPUStat) GetSystem

func (x *CPUStat) GetSystem() float64

func (*CPUStat) GetUser

func (x *CPUStat) GetUser() float64

func (*CPUStat) MarshalToSizedBufferVT

func (m *CPUStat) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CPUStat) MarshalToVT

func (m *CPUStat) MarshalToVT(dAtA []byte) (int, error)

func (*CPUStat) MarshalVT

func (m *CPUStat) MarshalVT() (dAtA []byte, err error)

func (*CPUStat) ProtoMessage

func (*CPUStat) ProtoMessage()

func (*CPUStat) ProtoReflect

func (x *CPUStat) ProtoReflect() protoreflect.Message

func (*CPUStat) Reset

func (x *CPUStat) Reset()

func (*CPUStat) SizeVT

func (m *CPUStat) SizeVT() (n int)

func (*CPUStat) String

func (x *CPUStat) String() string

func (*CPUStat) UnmarshalVT

func (m *CPUStat) UnmarshalVT(dAtA []byte) error

type MemorySpec

type MemorySpec struct {
	MemTotal          uint64 `protobuf:"varint,1,opt,name=mem_total,json=memTotal,proto3" json:"mem_total,omitempty"`
	MemUsed           uint64 `protobuf:"varint,2,opt,name=mem_used,json=memUsed,proto3" json:"mem_used,omitempty"`
	MemAvailable      uint64 `protobuf:"varint,3,opt,name=mem_available,json=memAvailable,proto3" json:"mem_available,omitempty"`
	Buffers           uint64 `protobuf:"varint,4,opt,name=buffers,proto3" json:"buffers,omitempty"`
	Cached            uint64 `protobuf:"varint,5,opt,name=cached,proto3" json:"cached,omitempty"`
	SwapCached        uint64 `protobuf:"varint,6,opt,name=swap_cached,json=swapCached,proto3" json:"swap_cached,omitempty"`
	Active            uint64 `protobuf:"varint,7,opt,name=active,proto3" json:"active,omitempty"`
	Inactive          uint64 `protobuf:"varint,8,opt,name=inactive,proto3" json:"inactive,omitempty"`
	ActiveAnon        uint64 `protobuf:"varint,9,opt,name=active_anon,json=activeAnon,proto3" json:"active_anon,omitempty"`
	InactiveAnon      uint64 `protobuf:"varint,10,opt,name=inactive_anon,json=inactiveAnon,proto3" json:"inactive_anon,omitempty"`
	ActiveFile        uint64 `protobuf:"varint,11,opt,name=active_file,json=activeFile,proto3" json:"active_file,omitempty"`
	InactiveFile      uint64 `protobuf:"varint,12,opt,name=inactive_file,json=inactiveFile,proto3" json:"inactive_file,omitempty"`
	Unevictable       uint64 `protobuf:"varint,13,opt,name=unevictable,proto3" json:"unevictable,omitempty"`
	Mlocked           uint64 `protobuf:"varint,14,opt,name=mlocked,proto3" json:"mlocked,omitempty"`
	SwapTotal         uint64 `protobuf:"varint,15,opt,name=swap_total,json=swapTotal,proto3" json:"swap_total,omitempty"`
	SwapFree          uint64 `protobuf:"varint,16,opt,name=swap_free,json=swapFree,proto3" json:"swap_free,omitempty"`
	Dirty             uint64 `protobuf:"varint,17,opt,name=dirty,proto3" json:"dirty,omitempty"`
	Writeback         uint64 `protobuf:"varint,18,opt,name=writeback,proto3" json:"writeback,omitempty"`
	AnonPages         uint64 `protobuf:"varint,19,opt,name=anon_pages,json=anonPages,proto3" json:"anon_pages,omitempty"`
	Mapped            uint64 `protobuf:"varint,20,opt,name=mapped,proto3" json:"mapped,omitempty"`
	Shmem             uint64 `protobuf:"varint,21,opt,name=shmem,proto3" json:"shmem,omitempty"`
	Slab              uint64 `protobuf:"varint,22,opt,name=slab,proto3" json:"slab,omitempty"`
	SReclaimable      uint64 `protobuf:"varint,23,opt,name=s_reclaimable,json=sReclaimable,proto3" json:"s_reclaimable,omitempty"`
	SUnreclaim        uint64 `protobuf:"varint,24,opt,name=s_unreclaim,json=sUnreclaim,proto3" json:"s_unreclaim,omitempty"`
	KernelStack       uint64 `protobuf:"varint,25,opt,name=kernel_stack,json=kernelStack,proto3" json:"kernel_stack,omitempty"`
	PageTables        uint64 `protobuf:"varint,26,opt,name=page_tables,json=pageTables,proto3" json:"page_tables,omitempty"`
	NfSunstable       uint64 `protobuf:"varint,27,opt,name=nf_sunstable,json=nfSunstable,proto3" json:"nf_sunstable,omitempty"`
	Bounce            uint64 `protobuf:"varint,28,opt,name=bounce,proto3" json:"bounce,omitempty"`
	WritebackTmp      uint64 `protobuf:"varint,29,opt,name=writeback_tmp,json=writebackTmp,proto3" json:"writeback_tmp,omitempty"`
	CommitLimit       uint64 `protobuf:"varint,30,opt,name=commit_limit,json=commitLimit,proto3" json:"commit_limit,omitempty"`
	CommittedAs       uint64 `protobuf:"varint,31,opt,name=committed_as,json=committedAs,proto3" json:"committed_as,omitempty"`
	VmallocTotal      uint64 `protobuf:"varint,32,opt,name=vmalloc_total,json=vmallocTotal,proto3" json:"vmalloc_total,omitempty"`
	VmallocUsed       uint64 `protobuf:"varint,33,opt,name=vmalloc_used,json=vmallocUsed,proto3" json:"vmalloc_used,omitempty"`
	VmallocChunk      uint64 `protobuf:"varint,34,opt,name=vmalloc_chunk,json=vmallocChunk,proto3" json:"vmalloc_chunk,omitempty"`
	HardwareCorrupted uint64 `protobuf:"varint,35,opt,name=hardware_corrupted,json=hardwareCorrupted,proto3" json:"hardware_corrupted,omitempty"`
	AnonHugePages     uint64 `protobuf:"varint,36,opt,name=anon_huge_pages,json=anonHugePages,proto3" json:"anon_huge_pages,omitempty"`
	ShmemHugePages    uint64 `protobuf:"varint,37,opt,name=shmem_huge_pages,json=shmemHugePages,proto3" json:"shmem_huge_pages,omitempty"`
	ShmemPmdMapped    uint64 `protobuf:"varint,38,opt,name=shmem_pmd_mapped,json=shmemPmdMapped,proto3" json:"shmem_pmd_mapped,omitempty"`
	CmaTotal          uint64 `protobuf:"varint,39,opt,name=cma_total,json=cmaTotal,proto3" json:"cma_total,omitempty"`
	CmaFree           uint64 `protobuf:"varint,40,opt,name=cma_free,json=cmaFree,proto3" json:"cma_free,omitempty"`
	HugePagesTotal    uint64 `protobuf:"varint,41,opt,name=huge_pages_total,json=hugePagesTotal,proto3" json:"huge_pages_total,omitempty"`
	HugePagesFree     uint64 `protobuf:"varint,42,opt,name=huge_pages_free,json=hugePagesFree,proto3" json:"huge_pages_free,omitempty"`
	HugePagesRsvd     uint64 `protobuf:"varint,43,opt,name=huge_pages_rsvd,json=hugePagesRsvd,proto3" json:"huge_pages_rsvd,omitempty"`
	HugePagesSurp     uint64 `protobuf:"varint,44,opt,name=huge_pages_surp,json=hugePagesSurp,proto3" json:"huge_pages_surp,omitempty"`
	Hugepagesize      uint64 `protobuf:"varint,45,opt,name=hugepagesize,proto3" json:"hugepagesize,omitempty"`
	DirectMap4K       uint64 `protobuf:"varint,46,opt,name=direct_map4k,json=directMap4k,proto3" json:"direct_map4k,omitempty"`
	DirectMap2M       uint64 `protobuf:"varint,47,opt,name=direct_map2m,json=directMap2m,proto3" json:"direct_map2m,omitempty"`
	DirectMap1G       uint64 `protobuf:"varint,48,opt,name=direct_map1g,json=directMap1g,proto3" json:"direct_map1g,omitempty"`
	// contains filtered or unexported fields
}

MemorySpec represents the last Memory stats snapshot.

func (*MemorySpec) Descriptor deprecated

func (*MemorySpec) Descriptor() ([]byte, []int)

Deprecated: Use MemorySpec.ProtoReflect.Descriptor instead.

func (*MemorySpec) GetActive

func (x *MemorySpec) GetActive() uint64

func (*MemorySpec) GetActiveAnon

func (x *MemorySpec) GetActiveAnon() uint64

func (*MemorySpec) GetActiveFile

func (x *MemorySpec) GetActiveFile() uint64

func (*MemorySpec) GetAnonHugePages

func (x *MemorySpec) GetAnonHugePages() uint64

func (*MemorySpec) GetAnonPages

func (x *MemorySpec) GetAnonPages() uint64

func (*MemorySpec) GetBounce

func (x *MemorySpec) GetBounce() uint64

func (*MemorySpec) GetBuffers

func (x *MemorySpec) GetBuffers() uint64

func (*MemorySpec) GetCached

func (x *MemorySpec) GetCached() uint64

func (*MemorySpec) GetCmaFree

func (x *MemorySpec) GetCmaFree() uint64

func (*MemorySpec) GetCmaTotal

func (x *MemorySpec) GetCmaTotal() uint64

func (*MemorySpec) GetCommitLimit

func (x *MemorySpec) GetCommitLimit() uint64

func (*MemorySpec) GetCommittedAs

func (x *MemorySpec) GetCommittedAs() uint64

func (*MemorySpec) GetDirectMap1G

func (x *MemorySpec) GetDirectMap1G() uint64

func (*MemorySpec) GetDirectMap2M

func (x *MemorySpec) GetDirectMap2M() uint64

func (*MemorySpec) GetDirectMap4K

func (x *MemorySpec) GetDirectMap4K() uint64

func (*MemorySpec) GetDirty

func (x *MemorySpec) GetDirty() uint64

func (*MemorySpec) GetHardwareCorrupted

func (x *MemorySpec) GetHardwareCorrupted() uint64

func (*MemorySpec) GetHugePagesFree

func (x *MemorySpec) GetHugePagesFree() uint64

func (*MemorySpec) GetHugePagesRsvd

func (x *MemorySpec) GetHugePagesRsvd() uint64

func (*MemorySpec) GetHugePagesSurp

func (x *MemorySpec) GetHugePagesSurp() uint64

func (*MemorySpec) GetHugePagesTotal

func (x *MemorySpec) GetHugePagesTotal() uint64

func (*MemorySpec) GetHugepagesize

func (x *MemorySpec) GetHugepagesize() uint64

func (*MemorySpec) GetInactive

func (x *MemorySpec) GetInactive() uint64

func (*MemorySpec) GetInactiveAnon

func (x *MemorySpec) GetInactiveAnon() uint64

func (*MemorySpec) GetInactiveFile

func (x *MemorySpec) GetInactiveFile() uint64

func (*MemorySpec) GetKernelStack

func (x *MemorySpec) GetKernelStack() uint64

func (*MemorySpec) GetMapped

func (x *MemorySpec) GetMapped() uint64

func (*MemorySpec) GetMemAvailable

func (x *MemorySpec) GetMemAvailable() uint64

func (*MemorySpec) GetMemTotal

func (x *MemorySpec) GetMemTotal() uint64

func (*MemorySpec) GetMemUsed

func (x *MemorySpec) GetMemUsed() uint64

func (*MemorySpec) GetMlocked

func (x *MemorySpec) GetMlocked() uint64

func (*MemorySpec) GetNfSunstable

func (x *MemorySpec) GetNfSunstable() uint64

func (*MemorySpec) GetPageTables

func (x *MemorySpec) GetPageTables() uint64

func (*MemorySpec) GetSReclaimable

func (x *MemorySpec) GetSReclaimable() uint64

func (*MemorySpec) GetSUnreclaim

func (x *MemorySpec) GetSUnreclaim() uint64

func (*MemorySpec) GetShmem

func (x *MemorySpec) GetShmem() uint64

func (*MemorySpec) GetShmemHugePages

func (x *MemorySpec) GetShmemHugePages() uint64

func (*MemorySpec) GetShmemPmdMapped

func (x *MemorySpec) GetShmemPmdMapped() uint64

func (*MemorySpec) GetSlab

func (x *MemorySpec) GetSlab() uint64

func (*MemorySpec) GetSwapCached

func (x *MemorySpec) GetSwapCached() uint64

func (*MemorySpec) GetSwapFree

func (x *MemorySpec) GetSwapFree() uint64

func (*MemorySpec) GetSwapTotal

func (x *MemorySpec) GetSwapTotal() uint64

func (*MemorySpec) GetUnevictable

func (x *MemorySpec) GetUnevictable() uint64

func (*MemorySpec) GetVmallocChunk

func (x *MemorySpec) GetVmallocChunk() uint64

func (*MemorySpec) GetVmallocTotal

func (x *MemorySpec) GetVmallocTotal() uint64

func (*MemorySpec) GetVmallocUsed

func (x *MemorySpec) GetVmallocUsed() uint64

func (*MemorySpec) GetWriteback

func (x *MemorySpec) GetWriteback() uint64

func (*MemorySpec) GetWritebackTmp

func (x *MemorySpec) GetWritebackTmp() uint64

func (*MemorySpec) MarshalToSizedBufferVT

func (m *MemorySpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MemorySpec) MarshalToVT

func (m *MemorySpec) MarshalToVT(dAtA []byte) (int, error)

func (*MemorySpec) MarshalVT

func (m *MemorySpec) MarshalVT() (dAtA []byte, err error)

func (*MemorySpec) ProtoMessage

func (*MemorySpec) ProtoMessage()

func (*MemorySpec) ProtoReflect

func (x *MemorySpec) ProtoReflect() protoreflect.Message

func (*MemorySpec) Reset

func (x *MemorySpec) Reset()

func (*MemorySpec) SizeVT

func (m *MemorySpec) SizeVT() (n int)

func (*MemorySpec) String

func (x *MemorySpec) String() string

func (*MemorySpec) UnmarshalVT

func (m *MemorySpec) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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