pub struct SamplingStats {
pub total_samples: u64,
pub avg_sample_time_us: f64,
pub token_distribution: HashMap<TokenId, u64>,
pub effective_temperature: f32,
pub processor_times: HashMap<String, f64>,
}Expand description
Sampling statistics for monitoring
Fields§
§total_samples: u64Total sampling operations
avg_sample_time_us: f64Average sampling time in microseconds
token_distribution: HashMap<TokenId, u64>Distribution of sampled tokens
effective_temperature: f32Effective temperature (entropy-based measure)
processor_times: HashMap<String, f64>Processor execution times
Trait Implementations§
Source§impl Clone for SamplingStats
impl Clone for SamplingStats
Source§fn clone(&self) -> SamplingStats
fn clone(&self) -> SamplingStats
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 SamplingStats
impl Debug for SamplingStats
Source§impl<'de> Deserialize<'de> for SamplingStats
impl<'de> Deserialize<'de> for SamplingStats
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
Auto Trait Implementations§
impl Freeze for SamplingStats
impl RefUnwindSafe for SamplingStats
impl Send for SamplingStats
impl Sync for SamplingStats
impl Unpin for SamplingStats
impl UnsafeUnpin for SamplingStats
impl UnwindSafe for SamplingStats
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