pub struct ScopeLifecycleMetrics {
pub scope_name: String,
pub variable_count: usize,
pub avg_lifetime_ms: f64,
pub total_memory_bytes: usize,
pub peak_concurrent_vars: usize,
pub efficiency_score: f64,
}
Expand description
Scope-based lifecycle metrics
Fields§
§scope_name: String
Scope identifier (function name, block, etc.)
variable_count: usize
Number of variables in this scope
avg_lifetime_ms: f64
Average lifetime of variables in this scope
total_memory_bytes: usize
Total memory usage in this scope
peak_concurrent_vars: usize
Peak concurrent variables in this scope
efficiency_score: f64
Scope efficiency score (0.0 = poor, 1.0 = excellent)
Trait Implementations§
Source§impl Clone for ScopeLifecycleMetrics
impl Clone for ScopeLifecycleMetrics
Source§fn clone(&self) -> ScopeLifecycleMetrics
fn clone(&self) -> ScopeLifecycleMetrics
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 ScopeLifecycleMetrics
impl Debug for ScopeLifecycleMetrics
Source§impl<'de> Deserialize<'de> for ScopeLifecycleMetrics
impl<'de> Deserialize<'de> for ScopeLifecycleMetrics
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 ScopeLifecycleMetrics
impl RefUnwindSafe for ScopeLifecycleMetrics
impl Send for ScopeLifecycleMetrics
impl Sync for ScopeLifecycleMetrics
impl Unpin for ScopeLifecycleMetrics
impl UnwindSafe for ScopeLifecycleMetrics
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