pub struct Allocations {
pub allocations: u64,
pub allocation_count: u64,
pub deallocations: u64,
pub deallocation_count: u64,
}Expand description
The (de)allocations of a thread, as attached to TraceRow::Enter and
TraceRow::Exit.
These are the (de)allocations of the thread since its previous Enter or
Exit row (allocations made by the tracing itself are excluded). A row
without allocations means that nothing was (de)allocated, or that memory
isn’t tracked. Readers attribute them to the span on top of the thread’s
span stack before the row is applied: for Enter, the span that was running
before (if any), for Exit, the span that is exited.
Fields§
§allocations: u64Allocated bytes
allocation_count: u64Number of allocations
deallocations: u64Deallocated bytes
deallocation_count: u64Number of deallocations
Trait Implementations§
Source§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
Source§impl<'de> Deserialize<'de> for Allocations
impl<'de> Deserialize<'de> for Allocations
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Allocations
Source§impl PartialEq for Allocations
impl PartialEq for Allocations
Source§impl Serialize for Allocations
impl Serialize 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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.