Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableCPUs ¶ added in v1.50.0
func AvailableCPUs() int
AvailableCPUs returns the number of available CPU cores for the app.
func GetGOGC ¶ added in v1.63.0
func GetGOGC() int
GetGOGC returns GOGC value for the currently running process.
See https://golang.org/pkg/runtime/#hdr-Environment_Variables for more details about GOGC
func GetHierarchicalMemoryLimit ¶ added in v1.40.1
func GetHierarchicalMemoryLimit() int64
GetHierarchicalMemoryLimit returns hierarchical memory limit https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.