pub struct FlameGraph { /* private fields */ }
Expand description
Node in flamegraph tree.
Can be written to flamegraph format with write
.
Implementations§
Source§impl FlameGraph
impl FlameGraph
pub fn total_size(&self) -> usize
Sourcepub fn add(&mut self, other: FlameGraph)
pub fn add(&mut self, other: FlameGraph)
Add another flamegraph to this one.
Sourcepub fn add_child(&mut self, key: Key, child: FlameGraph)
pub fn add_child(&mut self, key: Key, child: FlameGraph)
Add a child node to the flamegraph, merging if it already exists.
Trait Implementations§
Source§impl Clone for FlameGraph
impl Clone for FlameGraph
Source§fn clone(&self) -> FlameGraph
fn clone(&self) -> FlameGraph
Returns a copy 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 moreSource§impl Debug for FlameGraph
impl Debug for FlameGraph
Source§impl Default for FlameGraph
impl Default for FlameGraph
Source§fn default() -> FlameGraph
fn default() -> FlameGraph
Returns the “default value” for a type. Read more
Auto 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