Struct time_graph::FullCallGraph [−][src]
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
impl FullCallGraph
[src]
pub fn spans(&self) -> impl Iterator<Item = &TimedSpan>
[src]
Get the full list of spans/functions known by this graph
pub fn calls(&self) -> impl Iterator<Item = Calls> + '_
[src]
Get the list of calls between spans in this graph
pub fn as_dot(&self) -> String
[src]
Get the full graph in graphviz dot format.
The exact output is unstable and should not be relied on.
Auto Trait Implementations
impl RefUnwindSafe for FullCallGraph
impl Send for FullCallGraph
impl Sync for FullCallGraph
impl Unpin for FullCallGraph
impl UnwindSafe for FullCallGraph
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,