monitoring

package
v0.0.0-...-3a7b9f0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const USAGE_SIZE int = 4 + 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor interface {
	C() <-chan []Usage
	Run()
	Stop()
}

func NewMonitor

func NewMonitor(msPeriod int, cpu, mem bool) Monitor

type Usage

type Usage struct {
	Name    [4]byte // up to 4 ASCII chars only, no final null byte
	Percent float64
}

Jump to

Keyboard shortcuts

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