Skip to main content

FrameMetrics

Struct FrameMetrics 

Source
pub struct FrameMetrics {
    pub tracked_chunks: usize,
    pub upload_in_flight_bytes: u64,
    pub pending_frame_submissions: u32,
    pub last_submission_id: u64,
    pub submission_timestamp_ns: u64,
    pub completion_timestamp_ns: Option<u64>,
    pub derived_cache_gpu_bytes: u64,
    pub derived_cache_peak_gpu_bytes: u64,
    pub physical_buffer_bytes: u64,
    pub physical_texture_bytes: u64,
    pub physical_total_bytes: u64,
    pub physical_peak_bytes: u64,
}
Expand description

Stable, allocation-free counters captured with a frame report.

Fields§

§tracked_chunks: usize

Provider chunks tracked by the GPU residency layer.

§upload_in_flight_bytes: u64

Upload bytes still protected by GPU fences.

§pending_frame_submissions: u32

Presentation submissions not yet reported complete by the GPU.

§last_submission_id: u64

Monotonic identifier for the most recently submitted frame.

§submission_timestamp_ns: u64

Submission timestamp in the engine monotonic clock, in nanoseconds: host time when the frame’s encoder reached the queue. CPU cost of the frame is separately observable as the duration of the native render call; this is not device execution time.

§completion_timestamp_ns: Option<u64>

Host timestamp when the last submission’s fence was observed complete, in the same monotonic clock. None while the frame is pending, and None on native backends because the engine only observes the fence on the browser path; even when set, this is host-observation latency, not exact device completion or GPU execution time. GPU execution time requires timestamp queries via the profiling path.

§derived_cache_gpu_bytes: u64

Retained recomputable device bytes.

§derived_cache_peak_gpu_bytes: u64

Peak recomputable device bytes since engine construction.

§physical_buffer_bytes: u64

Live physical GPU buffer bytes owned through the device boundary.

§physical_texture_bytes: u64

Live physical GPU texture bytes owned through the device boundary.

§physical_total_bytes: u64

Total live physical GPU bytes owned through the device boundary.

§physical_peak_bytes: u64

Peak live physical GPU bytes since device construction.

Trait Implementations§

Source§

impl Clone for FrameMetrics

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 FrameMetrics

Source§

impl Debug for FrameMetrics

Source§

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

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

impl Default for FrameMetrics

Source§

fn default() -> Self

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

impl Eq for FrameMetrics

Source§

impl PartialEq for FrameMetrics

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 FrameMetrics

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.