monitor

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllStats

type AllStats struct {
	Scope      string
	Name       string
	CPU        float64
	RAM        float64
	LastUpdate time.Time
	Data       []Stats
}

AllStats -

type App

type App struct {
	Value struct {
		CPU float64
		RAM float64
	}
}

App -

func GetAppStats

func GetAppStats(pid int) *App

GetAppStats -

type SendPid

type SendPid struct {
	Scope string
	Name  string
	Pid   int
}

SendPid -

type Stat

type Stat struct {
	// contains filtered or unexported fields
}

Stat will store CPU time struct

type Stats

type Stats struct {
	Scope  string
	Name   string
	Pid    int
	CPU    float64
	RAM    float64
	Path   string
	Status rates.SendStatus
}

Stats -

type SysInfo

type SysInfo struct {
	CPU    float64
	Memory float64
}

SysInfo will record cpu and memory data

func GetStat

func GetStat(pid int) (*SysInfo, error)

GetStat will return current system CPU and memory data

Jump to

Keyboard shortcuts

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