pub struct SamplingHeapProfileNodeBuilder { /* private fields */ }Available on crate features
experimental and HeapProfiler and Runtime only.Implementations§
Source§impl SamplingHeapProfileNodeBuilder
impl SamplingHeapProfileNodeBuilder
Sourcepub fn call_frame(&mut self, v: CallFrame) -> &mut Self
pub fn call_frame(&mut self, v: CallFrame) -> &mut Self
Function location.
Sourcepub fn self_size(&mut self, v: f64) -> &mut Self
pub fn self_size(&mut self, v: f64) -> &mut Self
Allocations size in bytes for the node excluding children.
Sourcepub fn id(&mut self, v: u32) -> &mut Self
pub fn id(&mut self, v: u32) -> &mut Self
Node id. Ids are unique across all profiles collected between startSampling and stopSampling.
Sourcepub fn children(&mut self, v: Vec<SamplingHeapProfileNode>) -> &mut Self
pub fn children(&mut self, v: Vec<SamplingHeapProfileNode>) -> &mut Self
Child nodes.
pub fn build(&mut self) -> Result<SamplingHeapProfileNode, &'static str>
Trait Implementations§
Source§impl Clone for SamplingHeapProfileNodeBuilder
impl Clone for SamplingHeapProfileNodeBuilder
Source§fn clone(&self) -> SamplingHeapProfileNodeBuilder
fn clone(&self) -> SamplingHeapProfileNodeBuilder
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 moreAuto Trait Implementations§
impl Freeze for SamplingHeapProfileNodeBuilder
impl RefUnwindSafe for SamplingHeapProfileNodeBuilder
impl Send for SamplingHeapProfileNodeBuilder
impl Sync for SamplingHeapProfileNodeBuilder
impl Unpin for SamplingHeapProfileNodeBuilder
impl UnwindSafe for SamplingHeapProfileNodeBuilder
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