pub struct SamplingHeapProfileSampleBuilder { /* private fields */ }Expand description
Builder for SamplingHeapProfileSample.
Implementations§
Source§impl SamplingHeapProfileSampleBuilder
impl SamplingHeapProfileSampleBuilder
Sourcepub fn size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Allocation size in bytes attributed to the sample.
Sourcepub fn node_id<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn node_id<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Id of the corresponding profile tree node.
Sourcepub fn ordinal<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn ordinal<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Time-ordered sample ordinal number. It is unique across all profiles retrieved between startSampling and stopSampling.
Sourcepub fn build(
&self,
) -> Result<SamplingHeapProfileSample, SamplingHeapProfileSampleBuilderError>
pub fn build( &self, ) -> Result<SamplingHeapProfileSample, SamplingHeapProfileSampleBuilderError>
Trait Implementations§
Source§impl Clone for SamplingHeapProfileSampleBuilder
impl Clone for SamplingHeapProfileSampleBuilder
Source§fn clone(&self) -> SamplingHeapProfileSampleBuilder
fn clone(&self) -> SamplingHeapProfileSampleBuilder
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 SamplingHeapProfileSampleBuilder
impl RefUnwindSafe for SamplingHeapProfileSampleBuilder
impl Send for SamplingHeapProfileSampleBuilder
impl Sync for SamplingHeapProfileSampleBuilder
impl Unpin for SamplingHeapProfileSampleBuilder
impl UnsafeUnpin for SamplingHeapProfileSampleBuilder
impl UnwindSafe for SamplingHeapProfileSampleBuilder
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