pub struct ScopeLifecycleMetrics {Show 21 fields
pub scope_name: String,
pub variable_count: usize,
pub average_lifetime_ms: f64,
pub total_memory_usage: usize,
pub peak_memory_usage: usize,
pub allocation_frequency: f64,
pub deallocation_efficiency: f64,
pub completed_allocations: usize,
pub memory_growth_events: usize,
pub peak_concurrent_variables: usize,
pub memory_efficiency_ratio: f64,
pub ownership_transfer_events: usize,
pub fragmentation_score: f64,
pub instant_allocations: usize,
pub short_term_allocations: usize,
pub medium_term_allocations: usize,
pub long_term_allocations: usize,
pub suspected_leaks: usize,
pub risk_distribution: RiskDistribution,
pub scope_metrics: Vec<ScopeLifecycleMetrics>,
pub type_lifecycle_patterns: Vec<TypeLifecyclePattern>,
}Expand description
Scope lifecycle metrics.
Fields§
§scope_name: StringName of the scope
variable_count: usizeNumber of variables in scope
average_lifetime_ms: f64Average lifetime in milliseconds
total_memory_usage: usizeTotal memory used by scope
peak_memory_usage: usizePeak memory usage in scope
allocation_frequency: f64Frequency of allocations
deallocation_efficiency: f64Efficiency of deallocations
completed_allocations: usizeNumber of completed allocations
memory_growth_events: usizeNumber of memory growth events
peak_concurrent_variables: usizePeak number of concurrent variables
memory_efficiency_ratio: f64Memory efficiency ratio
ownership_transfer_events: usizeNumber of ownership transfers
fragmentation_score: f64Fragmentation score
instant_allocations: usizeNumber of instant allocations
short_term_allocations: usizeNumber of short-term allocations
medium_term_allocations: usizeNumber of medium-term allocations
long_term_allocations: usizeNumber of long-term allocations
suspected_leaks: usizeNumber of suspected memory leaks
risk_distribution: RiskDistributionRisk distribution analysis
scope_metrics: Vec<ScopeLifecycleMetrics>Metrics for individual scopes
type_lifecycle_patterns: Vec<TypeLifecyclePattern>Lifecycle patterns for types
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 Default for ScopeLifecycleMetrics
impl Default for ScopeLifecycleMetrics
Source§fn default() -> ScopeLifecycleMetrics
fn default() -> ScopeLifecycleMetrics
Returns the “default value” for a type. Read more
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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