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.
impl MobilePresentTelemetry
Telemetry recording and simulator-honesty methods for MobilePresentTelemetry.
Sourcepub fn for_host(
active_path: MobilePresentPath,
display_mode_hz: f32,
is_simulator: bool,
) -> Self
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-truewhen executing inside a simulator where compositor timestamps are unobservable.
§Returns
Self- Configured mobile presentation telemetry state.
Sourcepub fn record_vsync_callback(
&mut self,
callback_ts_ns: u64,
target_ts_ns: Option<u64>,
)
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.
Sourcepub fn record_presented_frame(
&mut self,
path: MobilePresentPath,
strategy: MobileUploadStrategy,
upload_bytes: u64,
primitive_count: u32,
draw_calls: u32,
compositor_presented_ns: Option<u64>,
)
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-byteGpuPrimitiveInstancerecords emitted (0on upload/software).u32- Number of GPU draw calls emitted.Option<u64>- Optional hardware compositor presentation timestamp in nanoseconds (Nonewhen unobservable).
Sourcepub fn record_compositor_present_timestamp(&mut self, presented_ns: Option<u64>)
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 (NoneorSome(0)when unobservable).
Sourcepub fn record_fault(&mut self, fault: MobileSurfaceFault, blank_prevented: bool)
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-truewhen the last valid frame was retained to prevent submitting a blank frame.
Source§impl MobilePresentTelemetry
impl MobilePresentTelemetry
pub fn get_active_path(&self) -> MobilePresentPath
pub fn get_mut_active_path(&mut self) -> &mut MobilePresentPath
pub fn set_active_path(&mut self, val: MobilePresentPath) -> &mut Self
pub fn get_upload_strategy(&self) -> MobileUploadStrategy
pub fn get_mut_upload_strategy(&mut self) -> &mut MobileUploadStrategy
pub fn set_upload_strategy(&mut self, val: MobileUploadStrategy) -> &mut Self
pub fn get_cpu_mirror_active(&self) -> bool
pub fn get_mut_cpu_mirror_active(&mut self) -> &mut bool
pub fn set_cpu_mirror_active(&mut self, val: bool) -> &mut Self
pub fn get_timing_source(&self) -> MobilePresentTimingSource
pub fn get_mut_timing_source(&mut self) -> &mut MobilePresentTimingSource
pub fn set_timing_source(&mut self, val: MobilePresentTimingSource) -> &mut Self
pub fn get_unobservable_reason(&self) -> Option<&'static str>
pub fn try_get_unobservable_reason(&self) -> Option<&'static str>
pub fn get_mut_unobservable_reason(&mut self) -> &mut Option<&'static str>
pub fn set_unobservable_reason( &mut self, val: Option<&'static str>, ) -> &mut Self
pub fn get_is_simulator(&self) -> bool
pub fn get_mut_is_simulator(&mut self) -> &mut bool
pub fn set_is_simulator(&mut self, val: bool) -> &mut Self
pub fn get_display_mode_hz(&self) -> f32
pub fn get_mut_display_mode_hz(&mut self) -> &mut f32
pub fn set_display_mode_hz(&mut self, val: f32) -> &mut Self
pub fn get_frame_callback_count(&self) -> u64
pub fn get_mut_frame_callback_count(&mut self) -> &mut u64
pub fn set_frame_callback_count(&mut self, val: u64) -> &mut Self
pub fn get_last_callback_timestamp_ns(&self) -> u64
pub fn get_mut_last_callback_timestamp_ns(&mut self) -> &mut u64
pub fn set_last_callback_timestamp_ns(&mut self, val: u64) -> &mut Self
pub fn get_last_callback_interval_ms(&self) -> Option<f64>
pub fn try_get_last_callback_interval_ms(&self) -> Option<f64>
pub fn get_mut_last_callback_interval_ms(&mut self) -> &mut Option<f64>
pub fn set_last_callback_interval_ms(&mut self, val: Option<f64>) -> &mut Self
pub fn get_last_target_timestamp_ns(&self) -> Option<u64>
pub fn try_get_last_target_timestamp_ns(&self) -> Option<u64>
pub fn get_mut_last_target_timestamp_ns(&mut self) -> &mut Option<u64>
pub fn set_last_target_timestamp_ns(&mut self, val: Option<u64>) -> &mut Self
pub fn get_last_presented_timestamp_ns(&self) -> Option<u64>
pub fn try_get_last_presented_timestamp_ns(&self) -> Option<u64>
pub fn get_mut_last_presented_timestamp_ns(&mut self) -> &mut Option<u64>
pub fn set_last_presented_timestamp_ns(&mut self, val: Option<u64>) -> &mut Self
pub fn get_actual_presented_frames(&self) -> u64
pub fn get_mut_actual_presented_frames(&mut self) -> &mut u64
pub fn set_actual_presented_frames(&mut self, val: u64) -> &mut Self
pub fn get_upload_bytes_last_frame(&self) -> u64
pub fn get_mut_upload_bytes_last_frame(&mut self) -> &mut u64
pub fn set_upload_bytes_last_frame(&mut self, val: u64) -> &mut Self
pub fn get_upload_bytes_total(&self) -> u64
pub fn get_mut_upload_bytes_total(&mut self) -> &mut u64
pub fn set_upload_bytes_total(&mut self, val: u64) -> &mut Self
pub fn get_primitive_count_last_frame(&self) -> u32
pub fn get_mut_primitive_count_last_frame(&mut self) -> &mut u32
pub fn set_primitive_count_last_frame(&mut self, val: u32) -> &mut Self
pub fn get_draw_calls_last_frame(&self) -> u32
pub fn get_mut_draw_calls_last_frame(&mut self) -> &mut u32
pub fn set_draw_calls_last_frame(&mut self, val: u32) -> &mut Self
pub fn get_submit_failures(&self) -> u64
pub fn get_mut_submit_failures(&mut self) -> &mut u64
pub fn set_submit_failures(&mut self, val: u64) -> &mut Self
pub fn get_present_failures(&self) -> u64
pub fn get_mut_present_failures(&mut self) -> &mut u64
pub fn set_present_failures(&mut self, val: u64) -> &mut Self
pub fn get_context_loss_count(&self) -> u64
pub fn get_mut_context_loss_count(&mut self) -> &mut u64
pub fn set_context_loss_count(&mut self, val: u64) -> &mut Self
pub fn get_blank_frames_prevented(&self) -> u64
pub fn get_mut_blank_frames_prevented(&mut self) -> &mut u64
pub fn set_blank_frames_prevented(&mut self, val: u64) -> &mut Self
pub fn get_last_valid_frame_retained(&self) -> bool
pub fn get_mut_last_valid_frame_retained(&mut self) -> &mut bool
pub fn set_last_valid_frame_retained(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for MobilePresentTelemetry
impl Clone for MobilePresentTelemetry
impl Copy for MobilePresentTelemetry
Source§impl Debug for MobilePresentTelemetry
impl Debug for MobilePresentTelemetry
Source§impl Default for MobilePresentTelemetry
impl Default for MobilePresentTelemetry
Source§impl PartialEq for MobilePresentTelemetry
impl PartialEq for MobilePresentTelemetry
impl StructuralPartialEq for MobilePresentTelemetry
Auto Trait Implementations§
impl Forget for MobilePresentTelemetry
impl Freeze for MobilePresentTelemetry
impl Move for MobilePresentTelemetry
impl RefUnwindSafe for MobilePresentTelemetry
impl Send for MobilePresentTelemetry
impl Sync for MobilePresentTelemetry
impl Unpin for MobilePresentTelemetry
impl UnsafeUnpin for MobilePresentTelemetrywhere
&'static str: UnsafeUnpin,
impl UnwindSafe for MobilePresentTelemetrywhere
&'static str: 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