pub struct ProfileNodeBuilder { /* private fields */ }Expand description
Builder for ProfileNode.
Implementations§
Source§impl ProfileNodeBuilder
impl ProfileNodeBuilder
Sourcepub fn call_frame<VALUE: Into<CallFrame>>(&mut self, value: VALUE) -> &mut Self
pub fn call_frame<VALUE: Into<CallFrame>>(&mut self, value: VALUE) -> &mut Self
Function location.
Sourcepub fn hit_count<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn hit_count<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Number of samples where this node was on top of the call stack.
Sourcepub fn children<VALUE: Into<Vec<JsUInt>>>(&mut self, value: VALUE) -> &mut Self
pub fn children<VALUE: Into<Vec<JsUInt>>>(&mut self, value: VALUE) -> &mut Self
Child node ids.
Sourcepub fn deopt_reason<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn deopt_reason<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The reason of being not optimized. The function may be deoptimized or marked as don’t optimize.
Sourcepub fn position_ticks<VALUE: Into<Vec<PositionTickInfo>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn position_ticks<VALUE: Into<Vec<PositionTickInfo>>>( &mut self, value: VALUE, ) -> &mut Self
An array of source position ticks.
Sourcepub fn build(&self) -> Result<ProfileNode, ProfileNodeBuilderError>
pub fn build(&self) -> Result<ProfileNode, ProfileNodeBuilderError>
Trait Implementations§
Source§impl Clone for ProfileNodeBuilder
impl Clone for ProfileNodeBuilder
Source§fn clone(&self) -> ProfileNodeBuilder
fn clone(&self) -> ProfileNodeBuilder
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 ProfileNodeBuilder
impl RefUnwindSafe for ProfileNodeBuilder
impl Send for ProfileNodeBuilder
impl Sync for ProfileNodeBuilder
impl Unpin for ProfileNodeBuilder
impl UnsafeUnpin for ProfileNodeBuilder
impl UnwindSafe for ProfileNodeBuilder
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