Skip to main content

RenderStatsSnapshot

Struct RenderStatsSnapshot 

Source
pub struct RenderStatsSnapshot {
Show 45 fields pub submits: u32, pub encoder_count: u32, pub submit_count: u32, pub pass_count: u32, pub offscreen_acquires: u32, pub offscreen_news: u32, pub offscreen_total_bytes: u64, pub transient_texture_bytes: u64, pub retained_texture_bytes: u64, pub upload_bytes: u64, pub isolated_layer_renders: u32, pub isolated_layer_pixels: u64, pub layer_cache_hits: u32, pub layer_cache_misses: u32, pub layer_cache_evictions: u32, pub layer_cache_hit_pixels: u64, pub layer_cache_miss_pixels: u64, pub shadow_shape_cache_hits: u32, pub shadow_shape_cache_misses: u32, pub shadow_shape_cache_hit_pixels: u64, pub shadow_shape_cache_miss_pixels: u64, pub shadow_text_blur_fallbacks: u32, pub blur_passes: u32, pub composite_passes: u32, pub effect_applies: u32, pub shape_passes: u32, pub image_passes: u32, pub text_passes: u32, pub text_image_cache_hits: u32, pub text_image_cache_misses: u32, pub text_image_cache_hit_pixels: u64, pub text_image_cache_miss_pixels: u64, pub text_image_raster_bytes: u64, pub text_glyph_atlas_hits: u32, pub text_glyph_atlas_misses: u32, pub text_glyph_atlas_miss_pixels: u64, pub offscreen_pool_size: u32, pub offscreen_pool_bytes: u64, pub text_pool_size: u32, pub layer_cache_size: u32, pub layer_cache_bytes: u64, pub image_cache_size: u32, pub text_cache_size: u32, pub top_isolated_layers: [Option<IsolatedLayerStat>; 8], pub top_isolated_layer_count: usize,
}

Fields§

§submits: u32§encoder_count: u32§submit_count: u32§pass_count: u32§offscreen_acquires: u32§offscreen_news: u32§offscreen_total_bytes: u64§transient_texture_bytes: u64§retained_texture_bytes: u64§upload_bytes: u64§isolated_layer_renders: u32§isolated_layer_pixels: u64§layer_cache_hits: u32§layer_cache_misses: u32§layer_cache_evictions: u32§layer_cache_hit_pixels: u64§layer_cache_miss_pixels: u64§shadow_shape_cache_hits: u32§shadow_shape_cache_misses: u32§shadow_shape_cache_hit_pixels: u64§shadow_shape_cache_miss_pixels: u64§shadow_text_blur_fallbacks: u32§blur_passes: u32§composite_passes: u32§effect_applies: u32§shape_passes: u32§image_passes: u32§text_passes: u32§text_image_cache_hits: u32§text_image_cache_misses: u32§text_image_cache_hit_pixels: u64§text_image_cache_miss_pixels: u64§text_image_raster_bytes: u64§text_glyph_atlas_hits: u32§text_glyph_atlas_misses: u32§text_glyph_atlas_miss_pixels: u64§offscreen_pool_size: u32§offscreen_pool_bytes: u64§text_pool_size: u32§layer_cache_size: u32§layer_cache_bytes: u64§image_cache_size: u32§text_cache_size: u32§top_isolated_layers: [Option<IsolatedLayerStat>; 8]§top_isolated_layer_count: usize

Implementations§

Source§

impl FrameStatsSnapshot

Source

pub fn top_isolated_layers(self) -> impl Iterator<Item = IsolatedLayerStat>

Trait Implementations§

Source§

impl Clone for FrameStatsSnapshot

Source§

fn clone(&self) -> FrameStatsSnapshot

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 FrameStatsSnapshot

Source§

impl Debug for FrameStatsSnapshot

Source§

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

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

impl Default for FrameStatsSnapshot

Source§

fn default() -> FrameStatsSnapshot

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

impl PartialEq for FrameStatsSnapshot

Source§

fn eq(&self, other: &FrameStatsSnapshot) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for FrameStatsSnapshot

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> Downcast<T> for T

Source§

fn downcast(&self) -> &T

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.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,