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
Implements impl #impl_generics #name #ty_generics #where_clause.
impl MobilePresentTelemetry
Implements impl #impl_generics #name #ty_generics #where_clause.