cpu

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CpuUsage

func CpuUsage() float64

CpuUsage returns the usage percentage of the CPU

Types

type CPU

type CPU struct {
	Vendor     string    `json:"vendor"`
	Model      string    `json:"model"`
	Cores      uint32    `json:"cores"`
	Threads    uint32    `json:"threads"`
	ClockSpeed float64   `json:"clockSpeed"`
	Usage      float64   `json:"usage"`
	UsageEach  []float64 `json:"usageEach"`
}

CPU properties

func Check

func Check() CPU

Check for CPU availability

Jump to

Keyboard shortcuts

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