hardware

package
v0.0.0-...-1593278 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUNum

func GetCPUNum() int

GetCPUNum returns the count of cpu core.

func GetCPUUsage

func GetCPUUsage() float64

GetCPUUsage returns the cpu usage in percentage.

func GetDiskCount

func GetDiskCount() uint64

GetDiskCount returns the disk count in bytes.

func GetDiskUsage

func GetDiskUsage() uint64

GetDiskUsage returns the disk usage in bytes.

func GetFreeMemoryCount

func GetFreeMemoryCount() uint64

GetFreeMemoryCount returns the free memory in bytes.

func GetMemoryCount

func GetMemoryCount() uint64

GetMemoryCount returns the memory count in bytes.

func GetMemoryUseRatio

func GetMemoryUseRatio() float64

func GetUsedMemoryCount

func GetUsedMemoryCount() uint64

GetUsedMemoryCount returns the memory usage in bytes.

func InitMaxprocs

func InitMaxprocs(serverType string, flags *flag.FlagSet)

Initialize maxprocs

func TestGetContainerMemLimit

func TestGetContainerMemLimit(t *testing.T)

func TestGetContainerMemUsed

func TestGetContainerMemUsed(t *testing.T)

func TestInContainer

func TestInContainer(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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