Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MemoryFromProto ¶
func MemoryFromProto(m *sonm.RAMDevice) (*mem.VirtualMemoryStat, error)
func MemoryIntoProto ¶
func MemoryIntoProto(m *mem.VirtualMemoryStat) *sonm.RAMDevice
Types ¶
type Hardware ¶
Hardware accumulates the finest hardware information about system the miner is running on.
func HardwareFromProto ¶
func (*Hardware) LogicalCPUCount ¶
LogicalCPUCount returns the number of logical CPUs in the system.
func (*Hardware) TotalMemory ¶
TotalMemory returns the total number of bytes.
type HardwareInfo ¶
type HardwareInfo interface { // CPU returns information about system CPU. // // This includes vendor name, model name, number of cores, cache info, // instruction flags and many others to be able to identify and to properly // account the CPU. CPU() ([]cpu.Device, error) // Memory returns information about system memory. // // This includes total physical memory, available memory and many others, // expressed in bytes. Memory() (*mem.VirtualMemoryStat, error) // GPU returns information about GPU devices on the machine. GPU() ([]gpu.Device, error) // Info returns all described above hardware statistics. Info() (*Hardware, error) }
Click to show internal directories.
Click to hide internal directories.