package machine

import "github.com/google/cadvisor/utils/machine"

Index

Functions

func GetClockSpeed

func GetClockSpeed(procInfo []byte) (uint64, error)

GetClockSpeed returns the CPU clock speed, given a []byte formatted as the /proc/cpuinfo file.

func GetMachineMemoryCapacity

func GetMachineMemoryCapacity() (int64, error)

GetMachineMemoryCapacity returns the machine's total memory from /proc/meminfo. Returns the total memory capacity as an int64 (number of bytes).

func GetMachineSwapCapacity

func GetMachineSwapCapacity() (int64, error)

GetMachineSwapCapacity returns the machine's total swap from /proc/meminfo. Returns the total swap capacity as an int64 (number of bytes).

func GetTopology

func GetTopology(sysFs sysfs.SysFs, cpuinfo string) ([]info.Node, int, error)

Source Files

machine.go

Version
v0.20.1
Published
Dec 11, 2015
Platform
darwin/amd64
Imports
12 packages
Last checked
32 minutes ago

Tools for package owners.