pub struct FullCallGraph { /* private fields */ }
Expand description
Full call graph including execution time and number of calls between functions/spans.
This graph is a directed graph linking different SpanTiming
by the
number of time a given span was the child of another one.
§Examples
Code that looks like this
#[time_graph::instrument]
fn start() {
inside();
inside();
inner();
}
#[time_graph::instrument]
fn inside() {
inner();
}
#[time_graph::instrument]
fn inner() {
// do stuff
}
Will result in a graph like this, where the number near the edge correspond to the number of time a given span called another one.
| start, called 1 |
/ |
/ 2 |
/ | 1
| inside, called 2 | |
\ |
2 \ |
\ |
| inner, called 3 |
Implementations§
Auto Trait Implementations§
impl Freeze for FullCallGraph
impl RefUnwindSafe for FullCallGraph
impl Send for FullCallGraph
impl Sync for FullCallGraph
impl Unpin for FullCallGraph
impl UnwindSafe for FullCallGraph
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