pub struct SamplingHeapProfileNode { /* private fields */ }Available on crate features
experimental and HeapProfiler and Runtime only.Expand description
Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
Implementations§
Source§impl SamplingHeapProfileNode
impl SamplingHeapProfileNode
pub fn builder() -> SamplingHeapProfileNodeBuilder
Sourcepub fn call_frame(&self) -> &CallFrame
pub fn call_frame(&self) -> &CallFrame
Function location.
Sourcepub fn id(&self) -> u32
pub fn id(&self) -> u32
Node id. Ids are unique across all profiles collected between startSampling and stopSampling.
Sourcepub fn children(&self) -> &[SamplingHeapProfileNode]
pub fn children(&self) -> &[SamplingHeapProfileNode]
Child nodes.
Trait Implementations§
Source§impl Clone for SamplingHeapProfileNode
impl Clone for SamplingHeapProfileNode
Source§fn clone(&self) -> SamplingHeapProfileNode
fn clone(&self) -> SamplingHeapProfileNode
Returns a duplicate 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 SamplingHeapProfileNode
impl Debug for SamplingHeapProfileNode
Source§impl<'de> Deserialize<'de> for SamplingHeapProfileNode
impl<'de> Deserialize<'de> for SamplingHeapProfileNode
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
Auto Trait Implementations§
impl Freeze for SamplingHeapProfileNode
impl RefUnwindSafe for SamplingHeapProfileNode
impl Send for SamplingHeapProfileNode
impl Sync for SamplingHeapProfileNode
impl Unpin for SamplingHeapProfileNode
impl UnwindSafe for SamplingHeapProfileNode
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