Struct tikv_alloc::trace::MemoryTraceNode [−][src]
Fields
id: Id
trace: AtomicUsize
children: HashMap<Id, Arc<dyn MemoryTrace + Send + Sync>, BuildHasherDefault<FxHasher>>
Implementations
impl MemoryTraceNode
[src]
pub fn new(id: impl Into<Id>) -> MemoryTraceNode
[src]
Trait Implementations
impl MemoryTrace for MemoryTraceNode
[src]
fn trace(&self, event: TraceEvent)
[src]
fn snapshot(&self) -> MemoryTraceSnapshot
[src]
fn sub_trace(&self, id: Id) -> Arc<dyn MemoryTrace + Send + Sync>
[src]
fn add_sub_trace(&mut self, id: Id, trace: Arc<dyn MemoryTrace + Send + Sync>)
[src]
fn sum(&self) -> usize
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MemoryTraceNode
impl Send for MemoryTraceNode
impl Sync for MemoryTraceNode
impl Unpin for MemoryTraceNode
impl !UnwindSafe for MemoryTraceNode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,