pub struct ArenaStats {
pub used: usize,
pub capacity: usize,
pub peak: usize,
}Expand description
Frame budget observability — see FrameArena::stats.
Fields§
§used: usizeBytes handed out since the last FrameArena::reset.
capacity: usizeTotal bytes the arena can hand out.
peak: usizeLargest used seen since the arena was created (or since
FrameArena::reset_peak). This is the number that tells you whether
the frame budget is right.
Implementations§
Source§impl ArenaStats
impl ArenaStats
Sourcepub fn peak_fraction(&self) -> f32
pub fn peak_fraction(&self) -> f32
Fraction of capacity consumed at the high-water mark, in 0.0..=1.0.
Trait Implementations§
Source§impl Clone for ArenaStats
impl Clone for ArenaStats
impl Copy for ArenaStats
Source§impl Debug for ArenaStats
impl Debug for ArenaStats
Source§impl Default for ArenaStats
impl Default for ArenaStats
impl Eq for ArenaStats
Source§impl PartialEq for ArenaStats
impl PartialEq for ArenaStats
impl StructuralPartialEq 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