pub struct Allocations {
pub count: u64,
pub bytes: u64,
pub freed: u64,
}Expand description
Allocations made and bytes requested on one thread, from its start.
Fields§
§count: u64Allocation calls. A realloc that grows counts as one.
bytes: u64Bytes requested. A growing realloc counts the bytes it added.
freed: u64Bytes returned. A shrinking realloc counts the bytes it gave back.
Charged to the thread that frees, which for blue’s single-threaded
interpreters is the thread that allocated.
Implementations§
Source§impl Allocations
impl Allocations
Trait Implementations§
Source§impl AddAssign for Allocations
impl AddAssign for Allocations
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl Clone for Allocations
impl Clone for Allocations
impl Copy for Allocations
Source§impl Debug for Allocations
impl Debug for Allocations
Source§impl Default for Allocations
impl Default for Allocations
impl Eq for Allocations
Source§impl PartialEq for Allocations
impl PartialEq for Allocations
impl StructuralPartialEq for Allocations
Auto Trait Implementations§
impl Freeze for Allocations
impl RefUnwindSafe for Allocations
impl Send for Allocations
impl Sync for Allocations
impl Unpin for Allocations
impl UnsafeUnpin for Allocations
impl UnwindSafe for Allocations
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.