pub struct GcArena { /* private fields */ }Expand description
Arena for garbage-collected objects
Implementations§
Source§impl GcArena
impl GcArena
pub fn new() -> Self
Sourcepub fn should_collect(&self) -> bool
pub fn should_collect(&self) -> bool
Whether the threshold has been exceeded
Sourcepub fn live_count(&self) -> usize
pub fn live_count(&self) -> usize
Number of live objects
Sourcepub fn bytes_allocated(&self) -> usize
pub fn bytes_allocated(&self) -> usize
Total bytes allocated
Sourcepub fn collection_count(&self) -> usize
pub fn collection_count(&self) -> usize
Number of collections performed