system

package
v0.28.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL