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: ScopeId,
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: ScopeId
The common identifier that we merged using.
data: Cow<'s, str>
only set if all children had the same
children: Vec<MergeScope<'s>>
The merged children of this merged scope.
Implementations§
source§impl<'s> MergeScope<'s>
impl<'s> MergeScope<'s>
sourcepub fn into_owned(self) -> MergeScope<'static>
pub fn into_owned(self) -> MergeScope<'static>
Clones the merge scope.
Trait Implementations§
source§impl<'s> Clone for MergeScope<'s>
impl<'s> Clone for MergeScope<'s>
source§fn clone(&self) -> MergeScope<'s>
fn clone(&self) -> MergeScope<'s>
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<'s> Debug for MergeScope<'s>
impl<'s> Debug for MergeScope<'s>
source§impl<'s> PartialEq for MergeScope<'s>
impl<'s> PartialEq for MergeScope<'s>
source§fn 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 ==
.impl<'s> StructuralPartialEq for MergeScope<'s>
Auto Trait Implementations§
impl<'s> Freeze for MergeScope<'s>
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§
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