Struct puffin::UnpackedFrameData
source · pub struct UnpackedFrameData {
pub meta: FrameMeta,
pub thread_streams: BTreeMap<ThreadInfo, Arc<StreamInfo>>,
}
Expand description
One frame worth of profile data, collected from many sources.
More often encoded as a FrameData
.
Fields§
§meta: FrameMeta
Frame metadata.
thread_streams: BTreeMap<ThreadInfo, Arc<StreamInfo>>
The streams of profiling data for each thread.
Implementations§
source§impl UnpackedFrameData
impl UnpackedFrameData
sourcepub fn new(
frame_index: FrameIndex,
thread_streams: BTreeMap<ThreadInfo, StreamInfo>
) -> Result<Self>
pub fn new( frame_index: FrameIndex, thread_streams: BTreeMap<ThreadInfo, StreamInfo> ) -> Result<Self>
Create a new UnpackedFrameData
.
sourcepub fn frame_index(&self) -> u64
pub fn frame_index(&self) -> u64
The index of this frame.
sourcepub fn range_ns(&self) -> (NanoSecond, NanoSecond)
pub fn range_ns(&self) -> (NanoSecond, NanoSecond)
The range in nanoseconds of the entire profile frame.
sourcepub fn duration_ns(&self) -> NanoSecond
pub fn duration_ns(&self) -> NanoSecond
The duration in nanoseconds of the entire profile frame.
Auto Trait Implementations§
impl Freeze for UnpackedFrameData
impl RefUnwindSafe for UnpackedFrameData
impl Send for UnpackedFrameData
impl Sync for UnpackedFrameData
impl Unpin for UnpackedFrameData
impl UnwindSafe for UnpackedFrameData
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