cpu

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

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcStat

type ProcStat struct {
	User   float64
	System float64
	Nice   float64
	Idle   float64
	Wait   float64
	Irq    float64
	Srq    float64
	Zero   float64
	// contains filtered or unexported fields
}

ProcStat is a struct which represent cpu usage in Golang

func GetProcStat

func GetProcStat() (ProcStat, error)

GetProcStat is a function which returns new ProcStat structure

func (*ProcStat) Refresh

func (p *ProcStat) Refresh() (ProcStat, error)

Refresh is a method which returns new ProcStat structure (based on newest data)

Jump to

Keyboard shortcuts

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