pub struct RootTree { /* private fields */ }
Available on crate feature
runner
only.Expand description
A Tree
without any leafs. Useful if only the root data and metrics are of interest.
If you’re just interested in the data of the root then it is more performant to use this tree
instead of building a complete DhatTree
. The dhat metrics of the root are the summarized
metrics of all its children, so all this Tree
does is summarizing the metrics without
actually building the tree.
Trait Implementations§
Source§impl Tree for RootTree
impl Tree for RootTree
Source§fn set_root_data(&mut self, data: Data)
fn set_root_data(&mut self, data: Data)
Set the
Data
of the rootSource§fn get_root_data(&self) -> &Data
fn get_root_data(&self) -> &Data
Return the
Data
of the rootSource§fn from_json(
dhat_data: DhatData,
entry_point: &EntryPoint,
frames: &[Glob],
) -> Self
fn from_json( dhat_data: DhatData, entry_point: &EntryPoint, frames: &[Glob], ) -> Self
Create a new
Tree
from the given parametersSource§fn insert_iter(&mut self, iter: impl Iterator<Item = ProgramPoint>)
fn insert_iter(&mut self, iter: impl Iterator<Item = ProgramPoint>)
Insert all
ProgramPoint
s into this Tree
Source§fn metrics(&self) -> ToolMetrics
fn metrics(&self) -> ToolMetrics
Return the metrics of the root node
impl Eq for RootTree
impl StructuralPartialEq for RootTree
Auto Trait Implementations§
impl Freeze for RootTree
impl RefUnwindSafe for RootTree
impl Send for RootTree
impl Sync for RootTree
impl Unpin for RootTree
impl UnwindSafe for RootTree
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more