Discover Packages
github.com/openGemini/openGemini
lib
cpu
cgroup
package
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: Dec 24, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
GetCPULimit obtains the maximum number of CPU cores from the container environment.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.