pub struct FrameProfileHistory { /* private fields */ }Expand description
Bounded ring buffer of FrameProfileRecord snapshots.
Implementations§
Source§impl FrameProfileHistory
impl FrameProfileHistory
pub fn new(capacity: usize) -> Self
pub fn push(&mut self, record: FrameProfileRecord)
pub fn last(&self) -> Option<&FrameProfileRecord>
pub fn records(&self) -> &VecDeque<FrameProfileRecord>
pub fn summary( &self, total_frames: u64, full_rebuilds: u64, reconciled_updates: u64, ) -> PerfProfileSummary
Trait Implementations§
Source§impl Clone for FrameProfileHistory
impl Clone for FrameProfileHistory
Source§impl Debug for FrameProfileHistory
impl Debug for FrameProfileHistory
Auto Trait Implementations§
impl Forget for FrameProfileHistory
impl Freeze for FrameProfileHistory
impl Move for FrameProfileHistory
impl RefUnwindSafe for FrameProfileHistory
impl Send for FrameProfileHistory
impl Sync for FrameProfileHistory
impl Unpin for FrameProfileHistory
impl UnsafeUnpin for FrameProfileHistory
impl UnwindSafe for FrameProfileHistory
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