pub struct SamplingHeapProfileNode<'a> { /* private fields */ }Expand description
Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
Implementations§
Source§impl<'a> SamplingHeapProfileNode<'a>
impl<'a> SamplingHeapProfileNode<'a>
Sourcepub fn builder(
call_frame: CallFrame<'a>,
self_size: f64,
id: u64,
children: Vec<Box<SamplingHeapProfileNode<'a>>>,
) -> SamplingHeapProfileNodeBuilder<'a>
pub fn builder( call_frame: CallFrame<'a>, self_size: f64, id: u64, children: Vec<Box<SamplingHeapProfileNode<'a>>>, ) -> SamplingHeapProfileNodeBuilder<'a>
Creates a builder for this type with the required parameters:
call_frame: Function location.self_size: Allocations size in bytes for the node excluding children.id: Node id. Ids are unique across all profiles collected between startSampling and stopSampling.children: Child nodes.
Sourcepub fn call_frame(&self) -> &CallFrame<'a>
pub fn call_frame(&self) -> &CallFrame<'a>
Function location.
Sourcepub fn id(&self) -> u64
pub fn id(&self) -> u64
Node id. Ids are unique across all profiles collected between startSampling and stopSampling.
Sourcepub fn children(&self) -> &[Box<SamplingHeapProfileNode<'a>>]
pub fn children(&self) -> &[Box<SamplingHeapProfileNode<'a>>]
Child nodes.
Trait Implementations§
Source§impl<'a> Clone for SamplingHeapProfileNode<'a>
impl<'a> Clone for SamplingHeapProfileNode<'a>
Source§fn clone(&self) -> SamplingHeapProfileNode<'a>
fn clone(&self) -> SamplingHeapProfileNode<'a>
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 moreSource§impl<'a> Debug for SamplingHeapProfileNode<'a>
impl<'a> Debug for SamplingHeapProfileNode<'a>
Source§impl<'a> Default for SamplingHeapProfileNode<'a>
impl<'a> Default for SamplingHeapProfileNode<'a>
Source§fn default() -> SamplingHeapProfileNode<'a>
fn default() -> SamplingHeapProfileNode<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SamplingHeapProfileNode<'a>
impl<'de, 'a> Deserialize<'de> for SamplingHeapProfileNode<'a>
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<'a> Freeze for SamplingHeapProfileNode<'a>
impl<'a> RefUnwindSafe for SamplingHeapProfileNode<'a>
impl<'a> Send for SamplingHeapProfileNode<'a>
impl<'a> Sync for SamplingHeapProfileNode<'a>
impl<'a> Unpin for SamplingHeapProfileNode<'a>
impl<'a> UnsafeUnpin for SamplingHeapProfileNode<'a>
impl<'a> UnwindSafe for SamplingHeapProfileNode<'a>
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