pub struct CallGraph {
pub edges: Vec<(String, String, u64)>,
}Fields§
§edges: Vec<(String, String, u64)>Implementations§
Source§impl CallGraph
impl CallGraph
pub fn new() -> Self
pub fn add_edge( &mut self, caller: impl Into<String>, callee: impl Into<String>, count: u64, )
pub fn callers_of(&self, target: &str) -> Vec<(&str, u64)>
pub fn callees_of(&self, source: &str) -> Vec<(&str, u64)>
pub fn total_call_count(&self) -> u64
pub fn hot_call_sites(&self, threshold: u64) -> Vec<(&str, &str, u64)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallGraph
impl RefUnwindSafe for CallGraph
impl Send for CallGraph
impl Sync for CallGraph
impl Unpin for CallGraph
impl UnsafeUnpin for CallGraph
impl UnwindSafe for CallGraph
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