Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resources ¶
type Resources struct {
CPUPercent float64 // 0-100
RAMUsed uint64 // bytes
RAMTotal uint64 // bytes
VRAMUsed uint64 // bytes (0 if unknown)
VRAMTotal uint64 // bytes (0 if unknown)
Timestamp time.Time
}
func GetResources ¶
func GetResources() *Resources
GetResources returns the current system resource usage. It may return partial data if some metrics are unavailable.
Click to show internal directories.
Click to hide internal directories.