cgroup

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPULimit

func GetCPULimit() (float64, error)

GetCPULimit obtains the maximum number of CPU cores from the container environment.

func GetUsage

func GetUsage(interval time.Duration) (float64, error)

GetUsage get CPU usage, return CPU usage time instead of CPU usage percentage, if you want to get the percentage of CPU usage, you should multiply the result by 100.

func IsCgroup2

func IsCgroup2() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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