Documentation ¶
Overview ¶
Package sys provides system configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Host = cfg.NewProviderFunc("host", "Host statistics.", host) VirtualMemory = cfg.NewProviderFunc("mem", "Virtual memory usage statistics.", virtualmemory) CPU = cfg.NewProviderFunc("cpu", "CPU information", cpu) LoadAverage = cfg.NewProviderFunc("load", "Load averages", load) )
View Source
var AffineCPU = cfg.NewProviderFunc("affinecpu", "CPU information for processors assigned to this process", affinecpu)
Functions ¶
This section is empty.
Types ¶
type CPUFreq ¶
type CPUFreq struct{}
CPUFreq provides configuration about CPU frequency scaling.
func (CPUFreq) Configuration ¶
func (CPUFreq) Configuration() (cfg.Configuration, error)
Configuration queries sysfs for CPU frequency scaling status.
type Caches ¶
type Caches struct{}
Caches provides configuration about processor caches.
func (Caches) Configuration ¶
func (Caches) Configuration() (cfg.Configuration, error)
Configuration queries sysfs for cache configuration.
type IntelPState ¶
type IntelPState struct{}
IntelPState provides configuration about the Intel P-State driver.
func (IntelPState) Available ¶
func (IntelPState) Available() bool
Available checks whether the Intel P-State sysfs files are present.
func (IntelPState) Configuration ¶
func (IntelPState) Configuration() (cfg.Configuration, error)
Configuration queries sysfs for Intel P-state configuration.
type SMT ¶
type SMT struct{}
SMT provides simultaneous multithreading configuration.
func (SMT) Configuration ¶
func (SMT) Configuration() (cfg.Configuration, error)
Configuration queries sysfs for simultaneous multithreading configuration.
Click to show internal directories.
Click to hide internal directories.