Struct GpuTelemetrySample
pub struct GpuTelemetrySample {
pub vram_total_bytes: u64,
pub vram_used_bytes: u64,
pub vram_budget_bytes: u64,
pub compute_utilization_pct: u8,
pub temperature_celsius: u8,
pub board_power_watts: f32,
pub llm_phase: LlmWorkloadPhase,
pub llm_decode_rate_toks: f32,
}Expand description
Telemetry snapshot sampled from physical GPU hardware (NVML, DXGI, Vulkan, Metal, or WebGPU).
Fields§
§vram_total_bytes: u64Total installed physical VRAM in bytes
vram_used_bytes: u64Currently allocated VRAM across all OS processes in bytes
vram_budget_bytes: u64Safe OS-recommended memory budget ceiling in bytes
compute_utilization_pct: u8GPU compute engine utilization percentage [0..100]
temperature_celsius: u8GPU junction temperature in degrees Celsius
board_power_watts: f32Total instantaneous board power consumption in Watts
llm_phase: LlmWorkloadPhaseCurrent execution phase of the local LLM inference engine
llm_decode_rate_toks: f32Current token generation speed (tokens/sec)
Implementations§
§impl GpuTelemetrySample
impl GpuTelemetrySample
pub fn memory_class(&self) -> HardwareMemoryClass
pub fn memory_class(&self) -> HardwareMemoryClass
Classifies the host hardware into its memory capability class.
pub fn vram_pressure_ratio(&self) -> f32
pub fn vram_pressure_ratio(&self) -> f32
Computes current VRAM pressure as a ratio [0.0..1.0+].
Trait Implementations§
§impl Clone for GpuTelemetrySample
impl Clone for GpuTelemetrySample
§fn clone(&self) -> GpuTelemetrySample
fn clone(&self) -> GpuTelemetrySample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GpuTelemetrySample
§impl Debug for GpuTelemetrySample
impl Debug for GpuTelemetrySample
§impl<'de> Deserialize<'de> for GpuTelemetrySample
impl<'de> Deserialize<'de> for GpuTelemetrySample
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpuTelemetrySample, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpuTelemetrySample, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for GpuTelemetrySample
impl PartialEq for GpuTelemetrySample
§impl Serialize for GpuTelemetrySample
impl Serialize for GpuTelemetrySample
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GpuTelemetrySample
Auto Trait Implementations§
impl Freeze for GpuTelemetrySample
impl RefUnwindSafe for GpuTelemetrySample
impl Send for GpuTelemetrySample
impl Sync for GpuTelemetrySample
impl Unpin for GpuTelemetrySample
impl UnsafeUnpin for GpuTelemetrySample
impl UnwindSafe for GpuTelemetrySample
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more