pub struct RenderStatsSnapshot {Show 46 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 draw_calls: 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§draw_calls: u32Shape, image and glyph draw_indexed calls recorded this frame. The
*_passes counters above count batches, so a single image batch
reports image_passes=1 however many images it draws; this counts what
the driver actually sees. Composite and effect quads are not included —
they are one draw each and already counted by composite_passes,
blur_passes and effect_applies.
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: usizeImplementations§
Source§impl FrameStatsSnapshot
impl FrameStatsSnapshot
pub fn top_isolated_layers(self) -> impl Iterator<Item = IsolatedLayerStat>
Trait Implementations§
Source§impl Clone for FrameStatsSnapshot
impl Clone for FrameStatsSnapshot
Source§fn clone(&self) -> FrameStatsSnapshot
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameStatsSnapshot
Source§impl Debug for FrameStatsSnapshot
impl Debug for FrameStatsSnapshot
Source§impl Default for FrameStatsSnapshot
impl Default for FrameStatsSnapshot
Source§fn default() -> FrameStatsSnapshot
fn default() -> FrameStatsSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for FrameStatsSnapshot
impl PartialEq for FrameStatsSnapshot
impl StructuralPartialEq for FrameStatsSnapshot
Auto Trait Implementations§
impl Freeze for FrameStatsSnapshot
impl RefUnwindSafe for FrameStatsSnapshot
impl Send for FrameStatsSnapshot
impl Sync for FrameStatsSnapshot
impl Unpin for FrameStatsSnapshot
impl UnsafeUnpin for FrameStatsSnapshot
impl UnwindSafe for FrameStatsSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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