Struct puffin::MergeScope
source · [−]pub struct MergeScope<'s> {
pub relative_start_ns: NanoSecond,
pub total_duration_ns: NanoSecond,
pub duration_per_frame_ns: NanoSecond,
pub max_duration_ns: NanoSecond,
pub num_pieces: usize,
pub id: Cow<'s, str>,
pub location: Cow<'s, str>,
pub data: Cow<'s, str>,
pub children: Vec<MergeScope<'s>>,
}
Expand description
A scope that has been merged from many different sources
Fields
relative_start_ns: NanoSecond
Relative to parent.
total_duration_ns: NanoSecond
Sum of all durations over all frames
duration_per_frame_ns: NanoSecond
Self::total_duration_ns
divided by number of frames.
max_duration_ns: NanoSecond
The slowest individual piece.
num_pieces: usize
Number of pieces that got merged together to us.
id: Cow<'s, str>
The common identifier that we merged using.
location: Cow<'s, str>
only set if all children had the same
data: Cow<'s, str>
only set if all children had the same
children: Vec<MergeScope<'s>>
Implementations
sourceimpl<'s> MergeScope<'s>
impl<'s> MergeScope<'s>
pub fn into_owned(self) -> MergeScope<'static>
Trait Implementations
sourceimpl<'s> Clone for MergeScope<'s>
impl<'s> Clone for MergeScope<'s>
sourcefn clone(&self) -> MergeScope<'s>
fn clone(&self) -> MergeScope<'s>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'s> Debug for MergeScope<'s>
impl<'s> Debug for MergeScope<'s>
sourceimpl<'s> PartialEq<MergeScope<'s>> for MergeScope<'s>
impl<'s> PartialEq<MergeScope<'s>> for MergeScope<'s>
sourcefn eq(&self, other: &MergeScope<'s>) -> bool
fn eq(&self, other: &MergeScope<'s>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MergeScope<'s>) -> bool
fn ne(&self, other: &MergeScope<'s>) -> bool
This method tests for !=
.
impl<'s> StructuralPartialEq for MergeScope<'s>
Auto Trait Implementations
impl<'s> RefUnwindSafe for MergeScope<'s>
impl<'s> Send for MergeScope<'s>
impl<'s> Sync for MergeScope<'s>
impl<'s> Unpin for MergeScope<'s>
impl<'s> UnwindSafe for MergeScope<'s>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more