pub struct FrameView { /* private fields */ }
Expand description
A view of recent and slowest frames, used by GUIs.
Implementations§
source§impl FrameView
impl FrameView
sourcepub fn scope_collection(&self) -> &ScopeCollection
pub fn scope_collection(&self) -> &ScopeCollection
Returns the collection of scope details. This can be used to fetch more information about a specific scope.
sourcepub fn latest_frame(&self) -> Option<Arc<FrameData>>
pub fn latest_frame(&self) -> Option<Arc<FrameData>>
The latest fully captured frame of data.
sourcepub fn latest_frames(&self, n: usize) -> Vec<Arc<FrameData>>
pub fn latest_frames(&self, n: usize) -> Vec<Arc<FrameData>>
Returns up to n
latest fully captured frames of data.
sourcepub fn recent_frames(&self) -> impl Iterator<Item = &Arc<FrameData>>
pub fn recent_frames(&self) -> impl Iterator<Item = &Arc<FrameData>>
Oldest first
sourcepub fn slowest_frames_chronological(&self) -> Vec<Arc<FrameData>>
pub fn slowest_frames_chronological(&self) -> Vec<Arc<FrameData>>
The slowest frames so far (or since last call to Self::clear_slowest()
)
in chronological order.
sourcepub fn clear_slowest(&mut self)
pub fn clear_slowest(&mut self)
Clean history of the slowest frames.
sourcepub fn max_recent(&self) -> usize
pub fn max_recent(&self) -> usize
How many frames of recent history to store.
sourcepub fn set_max_recent(&mut self, max_recent: usize)
pub fn set_max_recent(&mut self, max_recent: usize)
How many frames of recent history to store.
sourcepub fn set_max_slow(&mut self, max_slow: usize)
pub fn set_max_slow(&mut self, max_slow: usize)
How many slow “spike” frames to store.
sourcepub fn pack_frames(&self) -> bool
pub fn pack_frames(&self) -> bool
Returns if frames are packed (compressed).
sourcepub fn set_pack_frames(&mut self, pack_frames: bool)
pub fn set_pack_frames(&mut self, pack_frames: bool)
Sets wether frames should be packed (compressed). Packing frames will increase CPU time and decrease memory usage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameView
impl RefUnwindSafe for FrameView
impl Send for FrameView
impl Sync for FrameView
impl Unpin for FrameView
impl UnwindSafe for FrameView
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