{"modulePath":"github.com/devx/cadvisor","version":"v0.23.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package machine\n\n## Functions\n\n```go\nfunc GetClockSpeed(procInfo []byte) (uint64, error)\n```\nGetClockSpeed returns the CPU clock speed, given a \\[]byte formatted as the /proc/cpuinfo file.\n\n```go\nfunc GetMachineMemoryCapacity() (uint64, error)\n```\nGetMachineMemoryCapacity returns the machine's total memory from /proc/meminfo. Returns the total memory capacity as an uint64 (number of bytes).\n\n```go\nfunc GetMachineSwapCapacity() (uint64, error)\n```\nGetMachineSwapCapacity returns the machine's total swap from /proc/meminfo. Returns the total swap capacity as an uint64 (number of bytes).\n\n```go\nfunc GetTopology(sysFs sysfs.SysFs, cpuinfo string) ([]info.Node, int, error)\n```\n\n","path":"github.com/devx/cadvisor/utils/machine","name":"machine","synopsis":"","isRedistributable":true}
