pub struct FrameProfiler { /* private fields */ }Implementations§
Source§impl FrameProfiler
impl FrameProfiler
pub fn new(capacity: usize) -> Self
pub fn record(&mut self, timing: FrameTiming)
pub fn frames(&self) -> &VecDeque<FrameTiming>
pub fn p50_total_us(&self) -> u64
pub fn p99_total_us(&self) -> u64
Sourcepub fn to_chrome_trace_json(&self) -> String
pub fn to_chrome_trace_json(&self) -> String
Exports recorded frames in Chrome Trace Event Format (loadable directly in Perfetto UI).
Auto Trait Implementations§
impl Forget for FrameProfiler
impl Freeze for FrameProfiler
impl Move for FrameProfiler
impl RefUnwindSafe for FrameProfiler
impl Send for FrameProfilerwhere
RawVecInner: Send,
impl Sync for FrameProfilerwhere
RawVecInner: Sync,
impl Unpin for FrameProfiler
impl UnsafeUnpin for FrameProfiler
impl UnwindSafe for FrameProfilerwhere
RawVecInner: UnwindSafe,
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