Skip to main content

FpsStats

Struct FpsStats 

Source
pub struct FpsStats {
Show 21 fields pub fps: f32, pub avg_ms: f32, pub latest_ms: f32, pub min_ms: f32, pub max_ms: f32, pub p95_ms: f32, pub p99_ms: f32, pub work_fps: f32, pub work_avg_ms: f32, pub work_p95_ms: f32, pub work_max_ms: f32, pub work_missed_120hz_budget: u32, pub work_missed_60hz_budget: u32, pub work_stalled_50ms_frames: u32, pub interval_count: u32, pub missed_120hz_budget: u32, pub missed_60hz_budget: u32, pub stalled_50ms_frames: u32, pub frame_count: u64, pub recompositions: u64, pub recomps_per_second: u64,
}
Expand description

Frame statistics snapshot.

Fields§

§fps: f32

Current presented-frame cadence in frames per second.

§avg_ms: f32

Average presented-frame interval in milliseconds.

§latest_ms: f32

Last recorded frame interval in milliseconds.

§min_ms: f32

Minimum frame interval in the rolling history.

§max_ms: f32

Maximum frame interval in the rolling history.

§p95_ms: f32

95th percentile frame interval in the rolling history.

§p99_ms: f32

99th percentile frame interval in the rolling history.

§work_fps: f32

AppShell work capacity in frames per second.

§work_avg_ms: f32

Average measured AppShell frame work in milliseconds.

§work_p95_ms: f32

95th percentile measured AppShell frame work in milliseconds.

§work_max_ms: f32

Maximum measured AppShell frame work in milliseconds.

§work_missed_120hz_budget: u32

Rolling count of measured AppShell work samples above the 120 Hz frame budget.

§work_missed_60hz_budget: u32

Rolling count of measured AppShell work samples above the 60 Hz frame budget.

§work_stalled_50ms_frames: u32

Rolling count of measured AppShell work samples above 50 ms.

§interval_count: u32

Number of frame intervals in the rolling history.

§missed_120hz_budget: u32

Rolling count of intervals above the 120 Hz frame budget.

§missed_60hz_budget: u32

Rolling count of intervals above the 60 Hz frame budget.

§stalled_50ms_frames: u32

Rolling count of intervals above 50 ms.

§frame_count: u64

Total frame count since monitor creation.

§recompositions: u64

Recomposition count since the last stats reset.

§recomps_per_second: u64

Recompositions in the last second.

Trait Implementations§

Source§

impl Clone for FpsStats

Source§

fn clone(&self) -> FpsStats

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FpsStats

Source§

impl Debug for FpsStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FpsStats

Source§

fn default() -> FpsStats

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.