telemetry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvgCpuUsage

func AvgCpuUsage(init, final CpuUsage) (avg float64)

func StartCpuUsageAverage added in v1.0.0

func StartCpuUsageAverage()

Types

type CpuUsage

type CpuUsage struct {
	Busy,
	Idle,
	Total uint64 // reported sum total of all usage
}

func PollCpu

func PollCpu() (cpuSnapshot CpuUsage)

type SystemUsage

type SystemUsage struct {
	Memory     memoryUsage
	CpuBusyAvg float64
}

func NewSystemUsage

func NewSystemUsage() (s SystemUsage)

Jump to

Keyboard shortcuts

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