Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableCPUs ¶
func AvailableCPUs() int
AvailableCPUs returns the number of available CPU cores for the app.
func GetGOGC ¶
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 ¶
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.