hwperf

package
v0.0.0-...-98db5b7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: CC-BY-4.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	// contains filtered or unexported fields
}

Device contains the method of which we can get device info

func GetDevices

func GetDevices() ([]*Device, error)

GetDevices returns a slice of devices

func (*Device) Clocks

func (d *Device) Clocks() (Cores, Mem uint)

Clocks returns the Core and Memory clock speed in MHz

func (*Device) Memory

func (d *Device) Memory() (Used, Free uint)

Memory returns the amount used and free on device

func (*Device) Power

func (d *Device) Power() (Watts uint)

Power returns the device power

func (*Device) RefreshStatus

func (d *Device) RefreshStatus() (err error)

RefreshStatus refreshes the device status

func (*Device) Temp

func (d *Device) Temp() (Celcius uint)

Temp returns the device temp

Jump to

Keyboard shortcuts

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