sys

package
v0.0.0-...-1327151 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

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) Available

func (CPUFreq) Available() bool

Available checks whether the cpufreq sysfs files are present.

func (CPUFreq) Configuration

func (CPUFreq) Configuration() (cfg.Configuration, error)

Configuration queries sysfs for CPU frequency scaling status.

func (CPUFreq) Doc

func (CPUFreq) Doc() string

Doc for the configuration provider.

func (CPUFreq) Key

func (CPUFreq) Key() cfg.Key

Key returns "cpufreq".

type Caches

type Caches struct{}

Caches provides configuration about processor caches.

func (Caches) Available

func (Caches) Available() bool

Available checks whether the cache sysfs files are present.

func (Caches) Configuration

func (Caches) Configuration() (cfg.Configuration, error)

Configuration queries sysfs for cache configuration.

func (Caches) Doc

func (Caches) Doc() string

Doc for the configuration provider.

func (Caches) Key

func (Caches) Key() cfg.Key

Key returns "cache".

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.

func (IntelPState) Doc

func (IntelPState) Doc() string

Doc for the configuration provider.

func (IntelPState) Key

func (IntelPState) Key() cfg.Key

Key returns "intelpstate".

type SMT

type SMT struct{}

SMT provides simultaneous multithreading configuration.

func (SMT) Available

func (SMT) Available() bool

Available checks whether the smt sysfs files are present.

func (SMT) Configuration

func (SMT) Configuration() (cfg.Configuration, error)

Configuration queries sysfs for simultaneous multithreading configuration.

func (SMT) Doc

func (SMT) Doc() string

Doc for the configuration provider.

func (SMT) Key

func (SMT) Key() cfg.Key

Key returns "smt".

Jump to

Keyboard shortcuts

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