pub struct ParserNode {
pub function_name: String,
pub raw_signature: String,
pub unique_key: String,
pub cpu_percent: f64,
pub sample_count: u64,
pub color: Option<RgbColor>,
pub x_position: f64,
pub y_position: f64,
pub width: f64,
pub height: f64,
pub sample_offset: u64,
pub sample_width: u64,
}Expand description
A node in the function call tree representing a single function
Fields§
§function_name: StringFunction name (cleaned and demangled)
raw_signature: StringRaw function signature from flamegraph title
unique_key: StringUnique identifier for this node instance
cpu_percent: f64CPU percentage this function consumes (including children)
sample_count: u64Total sample count for this function (including children)
color: Option<RgbColor>RGB color from flamegraph (indicates heat level)
x_position: f64Horizontal position in flamegraph (percentage)
y_position: f64Vertical position in flamegraph (pixels)
width: f64Width in flamegraph (percentage) - indicates relative time
height: f64Height in flamegraph (pixels) - usually constant per level
sample_offset: u64Raw sample offset from flamegraph
sample_width: u64Raw sample width from flamegraph
Trait Implementations§
Source§impl Clone for ParserNode
impl Clone for ParserNode
Source§fn clone(&self) -> ParserNode
fn clone(&self) -> ParserNode
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 ParserNode
impl Debug for ParserNode
Source§impl<'de> Deserialize<'de> for ParserNode
impl<'de> Deserialize<'de> for ParserNode
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 ParserNode
impl RefUnwindSafe for ParserNode
impl Send for ParserNode
impl Sync for ParserNode
impl Unpin for ParserNode
impl UnwindSafe for ParserNode
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