pub struct ArenaStats {
pub witness_used: usize,
pub witness_capacity: usize,
pub polynomial_used: usize,
pub polynomial_capacity: usize,
pub scratch_used: usize,
pub scratch_capacity: usize,
pub witness_fallback_bytes: usize,
pub polynomial_fallback_bytes: usize,
pub scratch_fallback_bytes: usize,
}Expand description
Statistics about arena memory usage.
Fields§
§witness_used: usize§witness_capacity: usize§polynomial_used: usize§polynomial_capacity: usize§scratch_used: usize§scratch_capacity: usize§witness_fallback_bytes: usize§polynomial_fallback_bytes: usize§scratch_fallback_bytes: usizeImplementations§
Source§impl ArenaStats
impl ArenaStats
Sourcepub fn total_used(&self) -> usize
pub fn total_used(&self) -> usize
Total memory currently in use.
Sourcepub fn total_capacity(&self) -> usize
pub fn total_capacity(&self) -> usize
Total memory capacity across all arenas.
Sourcepub fn total_fallback_bytes(&self) -> usize
pub fn total_fallback_bytes(&self) -> usize
Total bytes allocated via fallback (only with fallback feature).
Trait Implementations§
Source§impl Clone for ArenaStats
impl Clone for ArenaStats
Source§fn clone(&self) -> ArenaStats
fn clone(&self) -> ArenaStats
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 ArenaStats
impl Debug for ArenaStats
impl Copy for ArenaStats
Auto Trait Implementations§
impl Freeze for ArenaStats
impl RefUnwindSafe for ArenaStats
impl Send for ArenaStats
impl Sync for ArenaStats
impl Unpin for ArenaStats
impl UnsafeUnpin for ArenaStats
impl UnwindSafe for ArenaStats
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