pub struct FlameGraph {
pub frames: Vec<FlameFrame>,
pub total_cost: u64,
}Expand description
Resource flame graph computed from a span tree.
Fields§
§frames: Vec<FlameFrame>All frames in the graph.
total_cost: u64Total cost across all root frames.
Implementations§
Source§impl FlameGraph
impl FlameGraph
Sourcepub fn from_span_tree(tree: &SpanTree) -> Self
pub fn from_span_tree(tree: &SpanTree) -> Self
Build a flame graph from a span tree.
Sourcepub fn render_html(&self) -> String
pub fn render_html(&self) -> String
Render as self-contained HTML with embedded JavaScript.
Trait Implementations§
Source§impl Clone for FlameGraph
impl Clone for FlameGraph
Source§fn clone(&self) -> FlameGraph
fn clone(&self) -> FlameGraph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FlameGraph
impl RefUnwindSafe for FlameGraph
impl Send for FlameGraph
impl Sync for FlameGraph
impl Unpin for FlameGraph
impl UnwindSafe for FlameGraph
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