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.
The number is rounded to the next integer value if fractional number of CPU cores are available.
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.