Documentation ¶
Index ¶
- func GetCPUNum() int
- func GetCPUUsage() float64
- func GetDiskCount() uint64
- func GetDiskUsage() uint64
- func GetFreeMemoryCount() uint64
- func GetMemoryCount() uint64
- func GetMemoryUseRatio() float64
- func GetUsedMemoryCount() uint64
- func InitMaxprocs(serverType string, flags *flag.FlagSet)
- func TestGetContainerMemLimit(t *testing.T)
- func TestGetContainerMemUsed(t *testing.T)
- func TestInContainer(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreeMemoryCount ¶
func GetFreeMemoryCount() uint64
GetFreeMemoryCount returns the free memory in bytes.
func GetMemoryCount ¶
func GetMemoryCount() uint64
GetMemoryCount returns the memory count in bytes.
func GetMemoryUseRatio ¶
func GetMemoryUseRatio() float64
func GetUsedMemoryCount ¶
func GetUsedMemoryCount() uint64
GetUsedMemoryCount returns the memory usage in bytes.
func TestGetContainerMemUsed ¶
func TestInContainer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.