Skip to main content

FrameTelemetry

Struct FrameTelemetry 

Source
pub struct FrameTelemetry { /* private fields */ }
Expand description

Unified per-frame diagnostic telemetry covering phase timings, damage ratio, redraw cause, and idle-aware FPS.

Implementations§

Source§

impl FrameTelemetry

Idle-aware telemetry sample accessors for FrameTelemetry.

Source

pub fn callback_rate_hz_sample(&self) -> Option<f32>

Returns the measured host callback rate in Hertz, or None when idle or not yet sampled.

§Arguments
  • &Self - Frame telemetry reference.
§Returns
  • Option<f32> - Active callback cadence in Hertz, or None when no sample is present.
Source

pub fn completed_frame_rate_hz_sample(&self) -> Option<f32>

Returns the completed & presented frame rate in Hertz, or None on idle/skipped frames instead of stale FPS.

§Arguments
  • &Self - Frame telemetry reference.
§Returns
  • Option<f32> - Active completed frame rate in Hertz, or None while idle.
Source

pub fn present_timestamp_ns_sample(&self) -> Option<u64>

Returns the monotonic presentation timestamp in nanoseconds, or None on skipped or failed frames.

§Arguments
  • &Self - Frame telemetry reference.
§Returns
  • Option<u64> - Presentation timestamp in nanoseconds, or None when no frame was presented.
Source§

impl FrameTelemetry

Source

pub fn get_frame_id(&self) -> u64

Source

pub fn get_mut_frame_id(&mut self) -> &mut u64

Source

pub fn set_frame_id(&mut self, val: u64) -> &mut Self

Source

pub fn get_phases(&self) -> FramePhaseMetrics

Source

pub fn get_mut_phases(&mut self) -> &mut FramePhaseMetrics

Source

pub fn set_phases(&mut self, val: FramePhaseMetrics) -> &mut Self

Source

pub fn get_dirty_area_ratio(&self) -> f32

Source

pub fn get_mut_dirty_area_ratio(&mut self) -> &mut f32

Source

pub fn set_dirty_area_ratio(&mut self, val: f32) -> &mut Self

Source

pub fn get_full_redraw_reason(&self) -> FullRedrawReason

Source

pub fn get_mut_full_redraw_reason(&mut self) -> &mut FullRedrawReason

Source

pub fn set_full_redraw_reason(&mut self, val: FullRedrawReason) -> &mut Self

Source

pub fn get_target_hz(&self) -> f32

Source

pub fn get_mut_target_hz(&mut self) -> &mut f32

Source

pub fn set_target_hz(&mut self, val: f32) -> &mut Self

Source

pub fn get_present_fps(&self) -> f32

Source

pub fn get_mut_present_fps(&mut self) -> &mut f32

Source

pub fn set_present_fps(&mut self, val: f32) -> &mut Self

Source

pub fn get_is_idle(&self) -> bool

Source

pub fn get_mut_is_idle(&mut self) -> &mut bool

Source

pub fn set_is_idle(&mut self, val: bool) -> &mut Self

Source

pub fn get_layout_nodes(&self) -> usize

Source

pub fn get_mut_layout_nodes(&mut self) -> &mut usize

Source

pub fn set_layout_nodes(&mut self, val: usize) -> &mut Self

Source

pub fn get_draw_commands(&self) -> usize

Source

pub fn get_mut_draw_commands(&mut self) -> &mut usize

Source

pub fn set_draw_commands(&mut self, val: usize) -> &mut Self

Source

pub fn get_pixels_shaded(&self) -> usize

Source

pub fn get_mut_pixels_shaded(&mut self) -> &mut usize

Source

pub fn set_pixels_shaded(&mut self, val: usize) -> &mut Self

Source

pub fn get_target_refresh_mode_hz(&self) -> f32

Source

pub fn get_mut_target_refresh_mode_hz(&mut self) -> &mut f32

Source

pub fn set_target_refresh_mode_hz(&mut self, val: f32) -> &mut Self

Source

pub fn get_callback_rate_hz(&self) -> f32

Source

pub fn get_mut_callback_rate_hz(&mut self) -> &mut f32

Source

pub fn set_callback_rate_hz(&mut self, val: f32) -> &mut Self

Source

pub fn get_has_callback_sample(&self) -> bool

Source

pub fn get_mut_has_callback_sample(&mut self) -> &mut bool

Source

pub fn set_has_callback_sample(&mut self, val: bool) -> &mut Self

Source

pub fn get_completed_frame_rate_hz(&self) -> f32

Source

pub fn get_mut_completed_frame_rate_hz(&mut self) -> &mut f32

Source

pub fn set_completed_frame_rate_hz(&mut self, val: f32) -> &mut Self

Source

pub fn get_has_completed_sample(&self) -> bool

Source

pub fn get_mut_has_completed_sample(&mut self) -> &mut bool

Source

pub fn set_has_completed_sample(&mut self, val: bool) -> &mut Self

Source

pub fn get_present_timestamp_ns(&self) -> u64

Source

pub fn get_mut_present_timestamp_ns(&mut self) -> &mut u64

Source

pub fn set_present_timestamp_ns(&mut self, val: u64) -> &mut Self

Source

pub fn get_has_present_timestamp(&self) -> bool

Source

pub fn get_mut_has_present_timestamp(&mut self) -> &mut bool

Source

pub fn set_has_present_timestamp(&mut self, val: bool) -> &mut Self

Source

pub fn get_submit_outcome(&self) -> FrameSubmitOutcome

Source

pub fn get_mut_submit_outcome(&mut self) -> &mut FrameSubmitOutcome

Source

pub fn set_submit_outcome(&mut self, val: FrameSubmitOutcome) -> &mut Self

Source

pub fn get_composite_only(&self) -> bool

Source

pub fn get_mut_composite_only(&mut self) -> &mut bool

Source

pub fn set_composite_only(&mut self, val: bool) -> &mut Self

Source

pub fn get_layout_telemetry(&self) -> LayoutTelemetry

Source

pub fn get_mut_layout_telemetry(&mut self) -> &mut LayoutTelemetry

Source

pub fn set_layout_telemetry(&mut self, val: LayoutTelemetry) -> &mut Self

Trait Implementations§

Source§

impl Clone for FrameTelemetry

Source§

fn clone(&self) -> Self

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 FrameTelemetry

Source§

impl Debug for FrameTelemetry

Source§

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

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

impl Default for FrameTelemetry

Source§

fn default() -> Self

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

impl PartialEq for FrameTelemetry

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FrameTelemetry

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.