per

package
v0.0.0-...-06e6185 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LastReadBytes  uint64
	LastWriteBytes uint64
	LastGetTime    int64
)

Functions

func GetCpuUsedRate

func GetCpuUsedRate() string

func GetMemUsedRate

func GetMemUsedRate() string

func GetProcess

func GetProcess() []config.Process

func KillProcess

func KillProcess()

Types

type DiskRWSpeed

type DiskRWSpeed struct {
	WriteSpeed string
	ReadSpeed  string
}

func GetDiskWRSpeed

func GetDiskWRSpeed() DiskRWSpeed

type NetworkSpeed

type NetworkSpeed struct {
	RecvSpeed string
	SendSpeed string
}

func GetNetworkSpeed

func GetNetworkSpeed() NetworkSpeed

type Win32_PerfFormattedData_Tcpip_NetworkInterface

type Win32_PerfFormattedData_Tcpip_NetworkInterface struct {
	Name                string
	BytesReceivedPerSec uint32
	BytesSentPerSec     uint32
}

Jump to

Keyboard shortcuts

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