pub struct GpuSnapshot {
pub id: GpuId,
pub memory_total: ByteSize,
pub memory_used: ByteSize,
pub temperature_celsius: u32,
pub utilisation_percent: u32,
pub ecc_errors_uncorrected: u64,
}Expand description
A point-in-time view of a single GPU’s telemetry.
GpuSnapshot is the lowest common denominator of what every GpuMonitor
implementation must be able to report. Higher layers (e.g. concerto-core)
turn these snapshots into richer state such as GpuState.
Fields§
§id: GpuIdThe GPU’s index on the node.
memory_total: ByteSizeTotal physical VRAM on the device.
memory_used: ByteSizeVRAM currently in use (from all processes on the device, not just ours).
temperature_celsius: u32Core temperature in degrees Celsius.
utilisation_percent: u32GPU core utilisation as a percentage (0-100).
ecc_errors_uncorrected: u64Cumulative count of uncorrectable ECC errors reported by the driver.
Trait Implementations§
Source§impl Clone for GpuSnapshot
impl Clone for GpuSnapshot
Source§fn clone(&self) -> GpuSnapshot
fn clone(&self) -> GpuSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuSnapshot
impl Debug for GpuSnapshot
Source§impl<'de> Deserialize<'de> for GpuSnapshot
impl<'de> Deserialize<'de> for GpuSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GpuSnapshot
impl PartialEq for GpuSnapshot
Source§impl Serialize for GpuSnapshot
impl Serialize for GpuSnapshot
impl StructuralPartialEq for GpuSnapshot
Auto Trait Implementations§
impl Freeze for GpuSnapshot
impl RefUnwindSafe for GpuSnapshot
impl Send for GpuSnapshot
impl Sync for GpuSnapshot
impl Unpin for GpuSnapshot
impl UnsafeUnpin for GpuSnapshot
impl UnwindSafe for GpuSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more