pub struct ProfileNode {
pub id: i64,
pub call_frame: CallFrame,
pub hit_count: Option<i64>,
pub children: Option<Vec<i64>>,
pub deopt_reason: Option<String>,
pub position_ticks: Option<Vec<PositionTickInfo>>,
}
Expand description
Profile node. Holds callsite information, execution statistics and child nodes. ProfileNode
Fields§
§id: i64
Unique id of the node.
call_frame: CallFrame
Function location.
hit_count: Option<i64>
Number of samples where this node was on top of the call stack.
children: Option<Vec<i64>>
Child node ids.
deopt_reason: Option<String>
The reason of being not optimized. The function may be deoptimized or marked as don’t optimize.
position_ticks: Option<Vec<PositionTickInfo>>
An array of source position ticks.
Implementations§
Source§impl ProfileNode
impl ProfileNode
Source§impl ProfileNode
impl ProfileNode
pub fn builder() -> ProfileNodeBuilder
Source§impl ProfileNode
impl ProfileNode
pub const IDENTIFIER: &'static str = "Profiler.ProfileNode"
Trait Implementations§
Source§impl Clone for ProfileNode
impl Clone for ProfileNode
Source§fn clone(&self) -> ProfileNode
fn clone(&self) -> ProfileNode
Returns a copy 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<ProfileNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProfileNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProfileNode
impl PartialEq for ProfileNode
Source§impl Serialize for ProfileNode
impl Serialize for ProfileNode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ProfileNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more