pub struct AllocCounts {
pub allocations: u64,
pub deallocations: u64,
pub bytes: u64,
}Expand description
Counts of heap use, on one thread or in the whole process.
Fields§
§allocations: u64Allocations, reallocations included: a reallocation is how a Vec
or a String grows.
deallocations: u64Deallocations. A reallocation is not one.
bytes: u64The bytes the allocations asked for: for a reallocation, its new size.
Implementations§
Source§impl AllocCounts
impl AllocCounts
Sourcepub fn since(self, earlier: AllocCounts) -> AllocCounts
pub fn since(self, earlier: AllocCounts) -> AllocCounts
The counts since earlier, an earlier reading of the same counts.
Trait Implementations§
Source§impl Clone for AllocCounts
impl Clone for AllocCounts
Source§fn clone(&self) -> AllocCounts
fn clone(&self) -> AllocCounts
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 AllocCounts
Source§impl Debug for AllocCounts
impl Debug for AllocCounts
Source§impl Default for AllocCounts
impl Default for AllocCounts
Source§fn default() -> AllocCounts
fn default() -> AllocCounts
Returns the “default value” for a type. Read more
impl Eq for AllocCounts
Source§impl PartialEq for AllocCounts
impl PartialEq for AllocCounts
impl StructuralPartialEq for AllocCounts
Auto Trait Implementations§
impl Forget for AllocCounts
impl Freeze for AllocCounts
impl Move for AllocCounts
impl RefUnwindSafe for AllocCounts
impl Send for AllocCounts
impl Sync for AllocCounts
impl Unpin for AllocCounts
impl UnsafeUnpin for AllocCounts
impl UnwindSafe for AllocCounts
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