pub struct ProfileNode { /* private fields */ }Available on crate features
Profiler and Runtime and Debugger only.Expand description
Profile node. Holds callsite information, execution statistics and child nodes.
Implementations§
Source§impl ProfileNode
impl ProfileNode
pub fn builder() -> ProfileNodeBuilder
Sourcepub fn call_frame(&self) -> &CallFrame
pub fn call_frame(&self) -> &CallFrame
Function location.
Sourcepub fn hit_count(&self) -> Option<&u32>
pub fn hit_count(&self) -> Option<&u32>
Number of samples where this node was on top of the call stack.
Sourcepub fn deopt_reason(&self) -> Option<&String>
pub fn deopt_reason(&self) -> Option<&String>
The reason of being not optimized. The function may be deoptimized or marked as don’t optimize.
Sourcepub fn position_ticks(&self) -> Option<&Vec<PositionTickInfo>>
pub fn position_ticks(&self) -> Option<&Vec<PositionTickInfo>>
An array of source position ticks.
Trait Implementations§
Source§impl Clone for ProfileNode
impl Clone for ProfileNode
Source§fn clone(&self) -> ProfileNode
fn clone(&self) -> ProfileNode
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 ProfileNode
impl Debug for ProfileNode
Source§impl<'de> Deserialize<'de> for ProfileNode
impl<'de> Deserialize<'de> for ProfileNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProfileNode
impl RefUnwindSafe for ProfileNode
impl Send for ProfileNode
impl Sync for ProfileNode
impl Unpin for ProfileNode
impl UnwindSafe for ProfileNode
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