psutil

package
v0.0.0-...-1a8c161 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CPU = &CPUUsageState{}
View Source
var CPUInfo = &CPUInfoState{}
View Source
var DISK = &DiskState{}
View Source
var HOST = &HostInfoState{}

Functions

This section is empty.

Types

type CPUDetailedPercent

type CPUDetailedPercent struct {
	User    float64 `json:"user"`
	System  float64 `json:"system"`
	Nice    float64 `json:"nice"`
	Idle    float64 `json:"idle"`
	Iowait  float64 `json:"iowait"`
	Irq     float64 `json:"irq"`
	Softirq float64 `json:"softirq"`
	Steal   float64 `json:"steal"`
}

func (*CPUDetailedPercent) GetCPUDetailedPercent

func (c *CPUDetailedPercent) GetCPUDetailedPercent() []float64

type CPUDetailedStat

type CPUDetailedStat struct {
	User      uint64
	Nice      uint64
	System    uint64
	Idle      uint64
	Iowait    uint64
	Irq       uint64
	Softirq   uint64
	Steal     uint64
	Guest     uint64
	GuestNice uint64
	Total     uint64
}

type CPUInfoState

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

func (*CPUInfoState) GetCPUInfo

func (c *CPUInfoState) GetCPUInfo(forceRefresh bool) ([]cpu.InfoStat, error)

func (*CPUInfoState) GetLogicalCores

func (c *CPUInfoState) GetLogicalCores(forceRefresh bool) (int, error)

func (*CPUInfoState) GetPhysicalCores

func (c *CPUInfoState) GetPhysicalCores(forceRefresh bool) (int, error)

type CPUStat

type CPUStat struct {
	Idle  uint64
	Total uint64
}

type CPUUsageState

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

func (*CPUUsageState) GetCPUUsage

func (c *CPUUsageState) GetCPUUsage() (float64, []float64, []float64)

func (*CPUUsageState) NumCPU

func (c *CPUUsageState) NumCPU() int

type DiskState

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

func (*DiskState) ClearAllCache

func (d *DiskState) ClearAllCache()

func (*DiskState) ClearUsageCache

func (d *DiskState) ClearUsageCache(path string)

func (*DiskState) GetPartitions

func (d *DiskState) GetPartitions(all bool, forceRefresh bool) ([]disk.PartitionStat, error)

func (*DiskState) GetUsage

func (d *DiskState) GetUsage(path string, forceRefresh bool) (*disk.UsageStat, error)

type DiskUsageEntry

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

type HostInfoState

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

func (*HostInfoState) GetDistro

func (h *HostInfoState) GetDistro() string

func (*HostInfoState) GetHostInfo

func (h *HostInfoState) GetHostInfo(forceRefresh bool) (*host.InfoStat, error)

Jump to

Keyboard shortcuts

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