pub struct TreeNode {
pub id: Uuid,
pub parent: Option<Uuid>,
pub children: Vec<Uuid>,
pub descendants: Vec<Uuid>,
pub function_name: String,
pub raw_signature: String,
pub cpu_percent: f64,
pub sample_count: u64,
pub self_sample_count: u64,
pub color: Option<RgbColor>,
pub source_library: Option<String>,
pub is_alloc: bool,
}Expand description
A node in the call tree with UUID-based parent/child relationships
Fields§
§id: UuidUnique identifier for this node
parent: Option<Uuid>Parent node UUID (None for root nodes)
children: Vec<Uuid>Child node UUIDs (direct children only)
descendants: Vec<Uuid>Descendant node UUIDs (all levels below)
function_name: StringFunction name (cleaned and demangled)
raw_signature: StringRaw function signature from flamegraph title
cpu_percent: f64CPU percentage this function consumes (including children)
sample_count: u64Total sample count for this function (including children)
self_sample_count: u64Total sample count for this function (excluding children)
color: Option<RgbColor>RGB color from flamegraph (indicates heat level)
source_library: Option<String>§is_alloc: boolImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TreeNode
impl<'de> Deserialize<'de> for TreeNode
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 TreeNode
impl RefUnwindSafe for TreeNode
impl Send for TreeNode
impl Sync for TreeNode
impl Unpin for TreeNode
impl UnwindSafe for TreeNode
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