Skip to main content

StreamingUploadPerfSnapshot

Struct StreamingUploadPerfSnapshot 

Source
pub struct StreamingUploadPerfSnapshot {
Show 17 fields pub frame_id: FrameId, pub upload_budget_bytes_per_frame: u64, pub staging_budget_bytes: u64, pub update_effects_seen: u64, pub update_effects_enqueued: u64, pub update_effects_replaced: u64, pub update_effects_applied: u64, pub update_effects_delayed_budget: u64, pub update_effects_dropped_staging: u64, pub upload_bytes_budgeted: u64, pub upload_bytes_applied: u64, pub pending_updates: u64, pub pending_staging_bytes: u64, pub yuv_convert_us: u64, pub yuv_convert_output_bytes: u64, pub yuv_conversions_attempted: u64, pub yuv_conversions_applied: u64,
}
Expand description

Per-frame counters for streaming image uploads (ADR 0121).

This is intended for debugging/telemetry surfaces (e.g. an on-screen overlay). The runner updates it when enabled by configuration.

Fields§

§frame_id: FrameId§upload_budget_bytes_per_frame: u64§staging_budget_bytes: u64§update_effects_seen: u64§update_effects_enqueued: u64§update_effects_replaced: u64§update_effects_applied: u64§update_effects_delayed_budget: u64§update_effects_dropped_staging: u64§upload_bytes_budgeted: u64

Estimated CPU->GPU upload bytes used for budget decisions this frame.

This is computed before applying updates and may be conservative when a platform can apply an update through a more efficient path (e.g. GPU-assisted YUV conversion).

§upload_bytes_applied: u64

Actual CPU->GPU upload bytes performed by applied updates this frame.

§pending_updates: u64§pending_staging_bytes: u64§yuv_convert_us: u64

Total CPU time spent preparing YUV updates during this frame (microseconds).

This includes CPU-side work such as plane repacking and command encoding; it does not include GPU execution time.

§yuv_convert_output_bytes: u64

Total RGBA output bytes produced (or written) by the YUV conversion path during this frame.

§yuv_conversions_attempted: u64§yuv_conversions_applied: u64

Trait Implementations§

Source§

impl Clone for StreamingUploadPerfSnapshot

Source§

fn clone(&self) -> StreamingUploadPerfSnapshot

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StreamingUploadPerfSnapshot

Source§

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

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

impl Default for StreamingUploadPerfSnapshot

Source§

fn default() -> StreamingUploadPerfSnapshot

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

impl Copy for StreamingUploadPerfSnapshot

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

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.