pub struct ProfileNode<'a> { /* private fields */ }Expand description
Profile node. Holds callsite information, execution statistics and child nodes.
Implementations§
Source§impl<'a> ProfileNode<'a>
impl<'a> ProfileNode<'a>
Sourcepub fn builder(id: u64, call_frame: CallFrame<'a>) -> ProfileNodeBuilder<'a>
pub fn builder(id: u64, call_frame: CallFrame<'a>) -> ProfileNodeBuilder<'a>
Creates a builder for this type with the required parameters:
id: Unique id of the node.call_frame: Function location.
Sourcepub fn call_frame(&self) -> &CallFrame<'a>
pub fn call_frame(&self) -> &CallFrame<'a>
Function location.
Sourcepub fn hit_count(&self) -> Option<u64>
pub fn hit_count(&self) -> Option<u64>
Number of samples where this node was on top of the call stack.
Sourcepub fn deopt_reason(&self) -> Option<&str>
pub fn deopt_reason(&self) -> Option<&str>
The reason of being not optimized. The function may be deoptimized or marked as don’t optimize.
Sourcepub fn position_ticks(&self) -> Option<&[PositionTickInfo]>
pub fn position_ticks(&self) -> Option<&[PositionTickInfo]>
An array of source position ticks.
Trait Implementations§
Source§impl<'a> Clone for ProfileNode<'a>
impl<'a> Clone for ProfileNode<'a>
Source§fn clone(&self) -> ProfileNode<'a>
fn clone(&self) -> ProfileNode<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ProfileNode<'a>
impl<'a> Debug for ProfileNode<'a>
Source§impl<'a> Default for ProfileNode<'a>
impl<'a> Default for ProfileNode<'a>
Source§fn default() -> ProfileNode<'a>
fn default() -> ProfileNode<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ProfileNode<'a>
impl<'de, 'a> Deserialize<'de> for ProfileNode<'a>
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<'a> Freeze for ProfileNode<'a>
impl<'a> RefUnwindSafe for ProfileNode<'a>
impl<'a> Send for ProfileNode<'a>
impl<'a> Sync for ProfileNode<'a>
impl<'a> Unpin for ProfileNode<'a>
impl<'a> UnsafeUnpin for ProfileNode<'a>
impl<'a> UnwindSafe for ProfileNode<'a>
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