pub struct SamplingProfileNodeBuilder { /* private fields */ }Expand description
Builder for SamplingProfileNode.
Implementations§
Source§impl SamplingProfileNodeBuilder
impl SamplingProfileNodeBuilder
Sourcepub fn size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Size of the sampled allocation.
Sourcepub fn total<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn total<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Total bytes attributed to this sample.
Sourcepub fn stack<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn stack<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Execution stack at the point of allocation.
Sourcepub fn build(
&self,
) -> Result<SamplingProfileNode, SamplingProfileNodeBuilderError>
pub fn build( &self, ) -> Result<SamplingProfileNode, SamplingProfileNodeBuilderError>
Trait Implementations§
Source§impl Clone for SamplingProfileNodeBuilder
impl Clone for SamplingProfileNodeBuilder
Source§fn clone(&self) -> SamplingProfileNodeBuilder
fn clone(&self) -> SamplingProfileNodeBuilder
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 SamplingProfileNodeBuilder
impl RefUnwindSafe for SamplingProfileNodeBuilder
impl Send for SamplingProfileNodeBuilder
impl Sync for SamplingProfileNodeBuilder
impl Unpin for SamplingProfileNodeBuilder
impl UnsafeUnpin for SamplingProfileNodeBuilder
impl UnwindSafe for SamplingProfileNodeBuilder
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