pub struct EnergySnapshot {
pub gpu_mj_total: u64,
pub gpu_counter_mj: u64,
pub tokens_total: u64,
pub joules_per_token_live: Option<f64>,
pub joules_per_token_cumulative: Option<f64>,
pub counter_resets: u64,
pub counter_wraps: u64,
}Fields§
§gpu_mj_total: u642026-09-26: GPU-rail millijoules since the first sample, reset- and wrap-corrected.
gpu_counter_mj: u642026-09-26: The raw NVML counter at the latest sample that carried it.
tokens_total: u642026-09-26: Tokens counted since the first energy sample.
joules_per_token_live: Option<f64>2026-09-26: J/token over the last crate::hub::LIVE_WINDOW samples.
joules_per_token_cumulative: Option<f64>§counter_resets: u64§counter_wraps: u64Trait Implementations§
Source§impl Clone for EnergySnapshot
impl Clone for EnergySnapshot
Source§fn clone(&self) -> EnergySnapshot
fn clone(&self) -> EnergySnapshot
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 EnergySnapshot
impl Debug for EnergySnapshot
Source§impl PartialEq for EnergySnapshot
impl PartialEq for EnergySnapshot
Source§impl Serialize for EnergySnapshot
impl Serialize for EnergySnapshot
impl StructuralPartialEq for EnergySnapshot
Auto Trait Implementations§
impl Freeze for EnergySnapshot
impl RefUnwindSafe for EnergySnapshot
impl Send for EnergySnapshot
impl Sync for EnergySnapshot
impl Unpin for EnergySnapshot
impl UnwindSafe for EnergySnapshot
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