Skip to main content

CallTreeManager

Struct CallTreeManager 

Source
pub struct CallTreeManager { /* private fields */ }
Expand description

Global call tree manager

Implementations§

Source§

impl CallTreeManager

Source

pub fn new() -> Self

Create a new call tree manager

Source

pub fn function_enter( &self, function_address: u64, call_site: u64, function_info: Option<FunctionInfo>, arguments: Vec<CapturedArgument>, register_context: Option<RegisterContext>, ) -> Result<NodeId>

Handle function entry

Source

pub fn function_enter_fast_path( &self, function_address: u64, call_site: u64, ) -> Result<NodeId>

Handle function entry - fast path (minimal overhead) This is optimized for the case where argument capture is disabled

Source

pub fn function_exit(&self, function_address: u64) -> Result<()>

Handle function exit

Source

pub fn function_exit_with_return_value( &self, _function_address: u64, return_value: Option<ArgumentValue>, ) -> Result<()>

Handle function exit with return value

Source

pub fn function_exit_fast_path(&self, _function_address: u64) -> Result<()>

Handle function exit - fast path (minimal overhead) This is optimized for the case where argument capture is disabled

Source

pub fn mark_pthread_create(&self, node_id: NodeId) -> Result<()>

Mark a node as pthread_create and register pending thread creation

Source

pub fn thread_started(&self, new_thread_id: ThreadId) -> Result<()>

Handle new thread start (consume pending thread creation)

Source

pub fn get_statistics(&self) -> CallTreeStatistics

Get statistics

Source

pub fn get_thread_ids(&self) -> Vec<ThreadId>

Get all thread IDs

Source

pub fn get_thread_tree( &self, thread_id: ThreadId, ) -> Option<Arc<RwLock<ThreadCallTree>>>

Get thread tree for a specific thread

Source

pub fn get_node(&self, node_id: NodeId) -> Option<Arc<RwLock<CallNode>>>

Get node by ID

Source

pub fn get_any_node(&self, node_id: NodeId) -> Option<Arc<RwLock<CallNode>>>

Get any node by ID (checks both full nodes and fast nodes) If found in fast_nodes, converts to full CallNode format for JSON output

Trait Implementations§

Source§

impl Default for CallTreeManager

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.