Struct alloc_track::ThreadMetric
source · pub struct ThreadMetric {
pub total_alloc: u64,
pub total_did_free: u64,
pub total_freed: u64,
pub current_used: u64,
pub freed_by_others: BTreeMap<String, u64>,
}Fields§
§total_alloc: u64Total bytes allocated in this thread
total_did_free: u64Total bytes freed in this thread
total_freed: u64Total bytes allocated in this thread that have been freed
current_used: u64Total bytes allocated in this thread that are not freed
freed_by_others: BTreeMap<String, u64>Total bytes allocated in this thread that have been freed by the given thread
Trait Implementations§
source§impl Clone for ThreadMetric
impl Clone for ThreadMetric
source§fn clone(&self) -> ThreadMetric
fn clone(&self) -> ThreadMetric
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ThreadMetric
impl Debug for ThreadMetric
source§impl Default for ThreadMetric
impl Default for ThreadMetric
source§fn default() -> ThreadMetric
fn default() -> ThreadMetric
Returns the “default value” for a type. Read more