Skip to main content

MobilePresentTelemetry

Struct MobilePresentTelemetry 

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

Honest cross-platform mobile presentation telemetry ready to feed into AdaptiveRenderRouter and report-v1 JSON.

Implementations§

Source§

impl MobilePresentTelemetry

Telemetry recording and simulator-honesty methods for MobilePresentTelemetry.

Source

pub fn for_host( active_path: MobilePresentPath, display_mode_hz: f32, is_simulator: bool, ) -> Self

Creates an initialized telemetry snapshot configured for active_path, display_mode_hz, and simulator status.

§Arguments
  • MobilePresentPath - Active presentation channel.
  • f32 - Display refresh rate in Hertz.
  • bool - true when executing inside a simulator where compositor timestamps are unobservable.
§Returns
  • Self - Configured mobile presentation telemetry state.
Source

pub fn record_vsync_callback( &mut self, callback_ts_ns: u64, target_ts_ns: Option<u64>, )

Records a VSync callback (Choreographer.doFrame or CADisplayLink) timestamp and optional target timestamp.

§Arguments
  • u64 - Monotonic VSync callback timestamp in nanoseconds.
  • Option<u64> - Optional target presentation deadline timestamp in nanoseconds.
Source

pub fn record_presented_frame( &mut self, path: MobilePresentPath, strategy: MobileUploadStrategy, upload_bytes: u64, primitive_count: u32, draw_calls: u32, compositor_presented_ns: Option<u64>, )

Records a successful frame presentation with exact path, upload strategy, byte count, and draw telemetry.

§Arguments
  • MobilePresentPath - Active presentation channel executed for this frame.
  • MobileUploadStrategy - Upload strategy executed for this frame.
  • u64 - Payload bytes uploaded to GPU or native surface memory.
  • u32 - Number of 64-byte GpuPrimitiveInstance records emitted (0 on upload/software).
  • u32 - Number of GPU draw calls emitted.
  • Option<u64> - Optional hardware compositor presentation timestamp in nanoseconds (None when unobservable).
Source

pub fn record_compositor_present_timestamp(&mut self, presented_ns: Option<u64>)

Records an observed compositor presentation timestamp while honestly marking simulator or missing timestamps unobservable.

§Arguments
  • Option<u64> - Compositor presentation timestamp in nanoseconds (None or Some(0) when unobservable).
Source

pub fn record_fault(&mut self, fault: MobileSurfaceFault, blank_prevented: bool)

Records a frame submission or presentation fault without fabricating a presented frame.

§Arguments
  • MobileSurfaceFault - Fault category observed during submit or present.
  • bool - true when the last valid frame was retained to prevent submitting a blank frame.
Source§

impl MobilePresentTelemetry

Source

pub fn get_active_path(&self) -> MobilePresentPath

Source

pub fn get_mut_active_path(&mut self) -> &mut MobilePresentPath

Source

pub fn set_active_path(&mut self, val: MobilePresentPath) -> &mut Self

Source

pub fn get_upload_strategy(&self) -> MobileUploadStrategy

Source

pub fn get_mut_upload_strategy(&mut self) -> &mut MobileUploadStrategy

Source

pub fn set_upload_strategy(&mut self, val: MobileUploadStrategy) -> &mut Self

Source

pub fn get_cpu_mirror_active(&self) -> bool

Source

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

Source

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

Source

pub fn get_timing_source(&self) -> MobilePresentTimingSource

Source

pub fn get_mut_timing_source(&mut self) -> &mut MobilePresentTimingSource

Source

pub fn set_timing_source(&mut self, val: MobilePresentTimingSource) -> &mut Self

Source

pub fn get_unobservable_reason(&self) -> Option<&'static str>

Source

pub fn try_get_unobservable_reason(&self) -> Option<&'static str>

Source

pub fn get_mut_unobservable_reason(&mut self) -> &mut Option<&'static str>

Source

pub fn set_unobservable_reason( &mut self, val: Option<&'static str>, ) -> &mut Self

Source

pub fn get_is_simulator(&self) -> bool

Source

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

Source

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

Source

pub fn get_display_mode_hz(&self) -> f32

Source

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

Source

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

Source

pub fn get_frame_callback_count(&self) -> u64

Source

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

Source

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

Source

pub fn get_last_callback_timestamp_ns(&self) -> u64

Source

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

Source

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

Source

pub fn get_last_callback_interval_ms(&self) -> Option<f64>

Source

pub fn try_get_last_callback_interval_ms(&self) -> Option<f64>

Source

pub fn get_mut_last_callback_interval_ms(&mut self) -> &mut Option<f64>

Source

pub fn set_last_callback_interval_ms(&mut self, val: Option<f64>) -> &mut Self

Source

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

Source

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

Source

pub fn get_mut_last_target_timestamp_ns(&mut self) -> &mut Option<u64>

Source

pub fn set_last_target_timestamp_ns(&mut self, val: Option<u64>) -> &mut Self

Source

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

Source

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

Source

pub fn get_mut_last_presented_timestamp_ns(&mut self) -> &mut Option<u64>

Source

pub fn set_last_presented_timestamp_ns(&mut self, val: Option<u64>) -> &mut Self

Source

pub fn get_actual_presented_frames(&self) -> u64

Source

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

Source

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

Source

pub fn get_upload_bytes_last_frame(&self) -> u64

Source

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

Source

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

Source

pub fn get_upload_bytes_total(&self) -> u64

Source

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

Source

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

Source

pub fn get_primitive_count_last_frame(&self) -> u32

Source

pub fn get_mut_primitive_count_last_frame(&mut self) -> &mut u32

Source

pub fn set_primitive_count_last_frame(&mut self, val: u32) -> &mut Self

Source

pub fn get_draw_calls_last_frame(&self) -> u32

Source

pub fn get_mut_draw_calls_last_frame(&mut self) -> &mut u32

Source

pub fn set_draw_calls_last_frame(&mut self, val: u32) -> &mut Self

Source

pub fn get_submit_failures(&self) -> u64

Source

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

Source

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

Source

pub fn get_present_failures(&self) -> u64

Source

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

Source

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

Source

pub fn get_context_loss_count(&self) -> u64

Source

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

Source

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

Source

pub fn get_blank_frames_prevented(&self) -> u64

Source

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

Source

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

Source

pub fn get_last_valid_frame_retained(&self) -> bool

Source

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

Source

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

Trait Implementations§

Source§

impl Clone for MobilePresentTelemetry

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 MobilePresentTelemetry

Source§

impl Debug for MobilePresentTelemetry

Source§

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

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

impl Default for MobilePresentTelemetry

Source§

fn default() -> Self

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

impl PartialEq for MobilePresentTelemetry

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 MobilePresentTelemetry

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.