sysmon

package
v0.0.0-...-846bdf4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sysmon measure the usage of system resources used by monitor.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUUsage

func GetCPUUsage(pid string) (float64, float64, float64)

GetCPUUsage get the CPU usage of the monitor program

func GetMemoryUsage

func GetMemoryUsage(pid string) (float64, float64, float64)

GetMemoryUsage get the memory usage of the monitor program

func GetNetworkIOUsage

func GetNetworkIOUsage(pid string) (int, int)

GetNetworkIOUsage get the network IO usage of the monitor program

func GetSystemResourceUsage

func GetSystemResourceUsage(pid string, initSysRes []float64, sysRes []float64) ([]float64, []float64)

GetSystemResourceUsage get the usage of system resources from the monitor program

func LogSystemResourceUsage

func LogSystemResourceUsage(sysOutput *os.File, sysRes []float64)

LogSystemResourceUsage write the system usage into a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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