pub struct ClosureStats {
pub closures_created: u64,
pub paps_created: u64,
pub exact_calls: u64,
pub under_applications: u64,
pub over_applications: u64,
pub tail_calls: u64,
pub direct_calls: u64,
pub builtin_calls: u64,
pub peak_stack_depth: usize,
}Expand description
Statistics about closure operations.
Fields§
§closures_created: u64Number of closures created.
paps_created: u64Number of PAPs created.
exact_calls: u64Number of exact calls.
under_applications: u64Number of under-applications.
over_applications: u64Number of over-applications.
tail_calls: u64Number of tail calls.
direct_calls: u64Number of direct calls.
builtin_calls: u64Number of built-in calls.
peak_stack_depth: usizePeak stack depth.
Implementations§
Source§impl ClosureStats
impl ClosureStats
Sourcepub fn record_closure_created(&mut self)
pub fn record_closure_created(&mut self)
Record a closure creation.
Sourcepub fn record_pap_created(&mut self)
pub fn record_pap_created(&mut self)
Record a PAP creation.
Sourcepub fn record_exact_call(&mut self)
pub fn record_exact_call(&mut self)
Record an exact call.
Sourcepub fn record_under_application(&mut self)
pub fn record_under_application(&mut self)
Record an under-application.
Sourcepub fn record_over_application(&mut self)
pub fn record_over_application(&mut self)
Record an over-application.
Sourcepub fn record_tail_call(&mut self)
pub fn record_tail_call(&mut self)
Record a tail call.
Sourcepub fn record_direct_call(&mut self)
pub fn record_direct_call(&mut self)
Record a direct call.
Sourcepub fn record_builtin_call(&mut self)
pub fn record_builtin_call(&mut self)
Record a built-in call.
Sourcepub fn update_peak_depth(&mut self, depth: usize)
pub fn update_peak_depth(&mut self, depth: usize)
Update peak stack depth.
Sourcepub fn total_calls(&self) -> u64
pub fn total_calls(&self) -> u64
Total number of calls.
Trait Implementations§
Source§impl Clone for ClosureStats
impl Clone for ClosureStats
Source§fn clone(&self) -> ClosureStats
fn clone(&self) -> ClosureStats
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 ClosureStats
impl Debug for ClosureStats
Source§impl Default for ClosureStats
impl Default for ClosureStats
Source§fn default() -> ClosureStats
fn default() -> ClosureStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClosureStats
impl RefUnwindSafe for ClosureStats
impl Send for ClosureStats
impl Sync for ClosureStats
impl Unpin for ClosureStats
impl UnsafeUnpin for ClosureStats
impl UnwindSafe for ClosureStats
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