public class 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.
for gpu in monitor.sample().gpus: print(gpu.id)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | dedicatedMemoryTotalBytesdedicatedMemoryTotalBytes as ULong |
Dedicated video-memory capacity in bytes; separate from shared RAM. |
| public readonly property | dedicatedMemoryUsedBytesdedicatedMemoryUsedBytes as ULong |
System-wide dedicated video-memory use in bytes, as reported by driver. |
| public readonly property | idid as String |
Boot/session-scoped adapter identity. |
| public readonly property | isSoftwareisSoftware as Boolean |
True for a software renderer, whose buffers occupy system RAM. |
| public readonly property | namename as String |
Driver adapter description; Linux may supply PCI IDs and driver name. |
| public readonly property | powerWattspowerWatts as Double |
Driver-reported GPU/board power in watts. |
| public readonly property | rendererMemoryUsedBytesrendererMemoryUsedBytes as ULong |
System RAM retained by a software renderer/compositor. |
| public readonly property | sharedMemoryTotalBytessharedMemoryTotalBytes as ULong |
Maximum shared system memory available to the adapter, in bytes. |
| public readonly property | sharedMemoryUsedBytessharedMemoryUsedBytes as ULong |
System-wide GPU shared-memory use in bytes. |
| public readonly property | temperatureCelsiustemperatureCelsius as Double |
GPU temperature in degrees Celsius, when a GPU sensor is exposed. |
| public readonly property | utilizationPercentutilizationPercent as Double |
Busy percentage in [0,100]. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | statusstatus(notnull field as GpuField) as MetricStatus |
Checks availability before reading a metric. |