pub struct FrameWindowMetrics {
pub frames_total: u64,
pub window_frames: u64,
pub resolve: TimingStats,
pub scene: TimingStats,
pub renderer: TimingStats,
pub total: TimingStats,
pub interval: TimingStats,
pub active_fps: f64,
pub missed_refreshes: u64,
pub display_refresh_hz: Option<f64>,
}Expand description
Aggregate statistics over the recently presented frames.
Fields§
§frames_total: u64Frames presented since process start.
window_frames: u64Frames the statistics below were computed over.
resolve: TimingStatsStyle plus layout.
scene: TimingStatsScene building.
renderer: TimingStatsEncode, submit and present.
total: TimingStatsPer-frame resolve + scene + renderer.
interval: TimingStatsGap between the starts of consecutive frames, idle gaps excluded.
active_fps: f64Frames per second across active intervals only. Blitz idles at zero FPS by design, so counting idle time would make every measurement meaningless.
missed_refreshes: u64Active intervals longer than 1.5 display refresh periods. Always zero when
display_refresh_hz is unknown.
display_refresh_hz: Option<f64>Trait Implementations§
Source§impl Clone for FrameWindowMetrics
impl Clone for FrameWindowMetrics
Source§fn clone(&self) -> FrameWindowMetrics
fn clone(&self) -> FrameWindowMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameWindowMetrics
impl Debug for FrameWindowMetrics
Source§impl Default for FrameWindowMetrics
impl Default for FrameWindowMetrics
Source§fn default() -> FrameWindowMetrics
fn default() -> FrameWindowMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameWindowMetrics
impl<'de> Deserialize<'de> for FrameWindowMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FrameWindowMetrics
impl PartialEq for FrameWindowMetrics
Source§impl Serialize for FrameWindowMetrics
impl Serialize for FrameWindowMetrics
impl StructuralPartialEq for FrameWindowMetrics
Auto Trait Implementations§
impl Freeze for FrameWindowMetrics
impl RefUnwindSafe for FrameWindowMetrics
impl Send for FrameWindowMetrics
impl Sync for FrameWindowMetrics
impl Unpin for FrameWindowMetrics
impl UnsafeUnpin for FrameWindowMetrics
impl UnwindSafe for FrameWindowMetrics
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