package machine
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/google/cadvisor/utils/machine"
Index ¶
- Variables
- func GetClockSpeed(procInfo []byte) (uint64, error)
- func GetMachineMemoryCapacity() (int64, error)
- func GetMachineSwapCapacity() (int64, error)
- func GetTopology(sysFs sysfs.SysFs, cpuinfo string) ([]info.Node, int, error)
Variables ¶
var CpuClockSpeedMHz = regexp.MustCompile("cpu MHz\\t*: +([0-9]+.[0-9]+)")
Functions ¶
func GetClockSpeed ¶
GetClockSpeed returns the CPU clock speed, given a []byte formatted as the /proc/cpuinfo file.
func GetMachineMemoryCapacity ¶
GetMachineMemoryCapacity returns the machine's total memory from /proc/meminfo. Returns the total memory capacity as an int64 (number of bytes).
func GetMachineSwapCapacity ¶
GetMachineSwapCapacity returns the machine's total swap from /proc/meminfo. Returns the total swap capacity as an int64 (number of bytes).
func GetTopology ¶
Source Files ¶
machine.go
- Version
- v1.1.5
- Published
- Jan 23, 2016
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.