GpuSnapshot
classin packageklyn.system
public class GpuSnapshot
GpuSnapshot

Immutable adapter observation. id identifies an adapter across samples of the current boot/driver session; list indices are not identities. Inventory includes software adapters with isSoftware=true. No CUDA context is created.

Example

for gpu in monitor.sample().gpus: print(gpu.id)

Properties
Modifier and Type Member Description
public readonly property dedicatedMemoryTotalBytes
dedicatedMemoryTotalBytes as ULong
Dedicated video-memory capacity in bytes; separate from shared RAM.
public readonly property dedicatedMemoryUsedBytes
dedicatedMemoryUsedBytes as ULong
System-wide dedicated video-memory use in bytes, as reported by driver.
public readonly property id
id as String
Boot/session-scoped adapter identity.
public readonly property isSoftware
isSoftware as Boolean
True for a software renderer, whose buffers occupy system RAM.
public readonly property name
name as String
Driver adapter description; Linux may supply PCI IDs and driver name.
public readonly property powerWatts
powerWatts as Double
Driver-reported GPU/board power in watts.
public readonly property rendererMemoryUsedBytes
rendererMemoryUsedBytes as ULong
System RAM retained by a software renderer/compositor.
public readonly property sharedMemoryTotalBytes
sharedMemoryTotalBytes as ULong
Maximum shared system memory available to the adapter, in bytes.
public readonly property sharedMemoryUsedBytes
sharedMemoryUsedBytes as ULong
System-wide GPU shared-memory use in bytes.
public readonly property temperatureCelsius
temperatureCelsius as Double
GPU temperature in degrees Celsius, when a GPU sensor is exposed.
public readonly property utilizationPercent
utilizationPercent as Double
Busy percentage in [0,100].
Methods
Modifier and Type Member Description
public status
status(notnull field as GpuField) as MetricStatus
Checks availability before reading a metric.