Documentation
¶
Overview ¶
Package sys provides methods to read system information
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Containerized ¶
func Containerized() bool
func GetMemCPU ¶
func GetMemCPU() cos.MemCPUInfo
func SetMaxProcs ¶
func SetMaxProcs()
SetMaxProcs sets GOMAXPROCS = NumCPU unless already overridden via Go environment
Types ¶
type LoadAvg ¶
type LoadAvg struct {
One, Five, Fifteen float64
}
func LoadAverage ¶
LoadAverage returns the system load average
type MemStat ¶
type ProcCPUStats ¶
type ProcMemStats ¶
type ProcStats ¶
type ProcStats struct {
CPU ProcCPUStats
Mem ProcMemStats
}
func ProcessStats ¶
First call to ProcessStats always returns 0% CPU usage because the process in not in the cache yet Return by value, so the next call for the same pid wouldn't rewrite old data