cpu

package
v0.0.0-...-88ec88e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreSnapshot

type CoreSnapshot struct {
	gorm.Model
	CoreId      uint32
	UsedPercent float64
	Mhz         float64
}

type Cpu

type Cpu struct{}

type CpuSnapshot

type CpuSnapshot struct {
	gorm.Model
	UsedPercent float64
	Microcode   string
	Cores       uint32
}

func Last

func Last() *CpuSnapshot

func (c *Cpu) Last() (cpu *CpuSnapshot) {

func New

func New() (*CpuSnapshot, *[]ThreadSnapshot)

func (*CpuSnapshot) Save

func (s *CpuSnapshot) Save()

type ThreadSnapshot

type ThreadSnapshot struct {
	gorm.Model
	ThreadId    uint32
	UsedPercent float64
	Mhz         float64
}

Jump to

Keyboard shortcuts

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