pub struct Collection {
pub allocated: u64,
pub freed_objects: u64,
pub freed_bytes: u64,
pub live_objects: u64,
pub live_bytes: u64,
pub pause: Duration,
}Expand description
What one collection did.
Fields§
§allocated: u64Objects allocated since the previous collection.
freed_objects: u64Objects the sweep reclaimed.
freed_bytes: u64Bytes held by what the sweep reclaimed, counting each shared
allocation once and not following an edge into an object that
survived. A value the reclaimed objects shared with a survivor is
counted here even though it was not released, so this is an upper
bound; Collection::live_bytes is the measured figure.
live_objects: u64Objects still live after the sweep.
live_bytes: u64Bytes the live set holds: every string, array, map, set, struct, enum case and closure the live objects and the roots reach, with each shared allocation counted once.
pause: DurationHow long the program was stopped for this collection.
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Collection
Source§impl Debug for Collection
impl Debug for Collection
Source§impl Default for Collection
impl Default for Collection
Source§fn default() -> Collection
fn default() -> Collection
Returns the “default value” for a type. Read more
impl Eq for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
Source§fn eq(&self, other: &Collection) -> bool
fn eq(&self, other: &Collection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.