pub struct ProfileNodeBuilder { /* private fields */ }Available on crate features
Profiler and Runtime and Debugger only.Implementations§
Source§impl ProfileNodeBuilder
impl ProfileNodeBuilder
Sourcepub fn call_frame(&mut self, v: CallFrame) -> &mut Self
pub fn call_frame(&mut self, v: CallFrame) -> &mut Self
Function location.
Sourcepub fn hit_count(&mut self, v: u32) -> &mut Self
pub fn hit_count(&mut self, v: u32) -> &mut Self
Number of samples where this node was on top of the call stack.
Sourcepub fn deopt_reason(&mut self, v: String) -> &mut Self
pub fn deopt_reason(&mut self, v: String) -> &mut Self
The reason of being not optimized. The function may be deoptimized or marked as don’t optimize.
Sourcepub fn position_ticks(&mut self, v: Vec<PositionTickInfo>) -> &mut Self
pub fn position_ticks(&mut self, v: Vec<PositionTickInfo>) -> &mut Self
An array of source position ticks.
pub fn build(&mut self) -> Result<ProfileNode, &'static str>
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 moreSource§impl Debug for ProfileNodeBuilder
impl Debug for ProfileNodeBuilder
Auto Trait Implementations§
impl Freeze for ProfileNodeBuilder
impl RefUnwindSafe for ProfileNodeBuilder
impl Send for ProfileNodeBuilder
impl Sync for ProfileNodeBuilder
impl Unpin 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