Documentation
¶
Index ¶
- func GetCPUNum() int
- func GetCPUUsage() float64
- func GetDiskUsage(path string) (float64, float64, error)
- func GetFreeMemoryCount() uint64
- func GetIOWait() (float64, error)
- func GetMemoryCount() uint64
- func GetMemoryUseRatio() float64
- func GetUsedMemoryCount() uint64
- func InitMaxprocs(serverType string, flags *flag.FlagSet)
- func TestGetCgroupStats(t *testing.T)
- func TestGetContainerMemLimit(t *testing.T)
- func TestGetContainerMemUsed(t *testing.T)
- type GPUMemoryInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDiskUsage ¶
GetDiskUsage Get Disk Usage in GB
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 TestGetCgroupStats ¶
func TestGetContainerMemUsed ¶
Types ¶
type GPUMemoryInfo ¶
type GPUMemoryInfo struct { TotalMemory uint64 // Total memory available on the GPU FreeMemory uint64 // Free memory available on the GPU }
GPUMemoryInfo holds information about a GPU's memory
func GetAllGPUMemoryInfo ¶
func GetAllGPUMemoryInfo() ([]GPUMemoryInfo, error)
GetAllGPUMemoryInfo returns mock GPU memory information for non-CUDA builds
Click to show internal directories.
Click to hide internal directories.