pub struct RendererTextPerfSnapshot {Show 31 fields
pub frame_id: FrameId,
pub font_stack_key: u64,
pub font_db_revision: u64,
pub fallback_policy_key: u64,
pub frame_missing_glyphs: u64,
pub frame_texts_with_missing_glyphs: u64,
pub blobs_live: u64,
pub blob_cache_entries: u64,
pub shape_cache_entries: u64,
pub measure_cache_buckets: u64,
pub shape_cache_bytes_estimate_total: u64,
pub blob_paint_palette_bytes_estimate_total: u64,
pub blob_decorations_bytes_estimate_total: u64,
pub unwrapped_layout_cache_entries: u64,
pub frame_unwrapped_layout_cache_hits: u64,
pub frame_unwrapped_layout_cache_misses: u64,
pub frame_unwrapped_layouts_created: u64,
pub frame_cache_resets: u64,
pub frame_blob_cache_hits: u64,
pub frame_blob_cache_misses: u64,
pub frame_blobs_created: u64,
pub frame_shape_cache_hits: u64,
pub frame_shape_cache_misses: u64,
pub frame_shapes_created: u64,
pub mask_atlas: RendererGlyphAtlasPerfSnapshot,
pub color_atlas: RendererGlyphAtlasPerfSnapshot,
pub subpixel_atlas: RendererGlyphAtlasPerfSnapshot,
pub registered_font_blobs_count: u64,
pub registered_font_blobs_total_bytes: u64,
pub family_id_cache_entries: u64,
pub baseline_metrics_cache_entries: u64,
}Expand description
Per-frame renderer-owned text cache counters.
This is intended for diagnostics bundles and on-screen debug panels. The runner can update it once per rendered frame to make renderer-level churn (text blobs, glyph atlas pressure) visible in a single artifact.
Fields§
§frame_id: FrameId§font_stack_key: u64§font_db_revision: u64§fallback_policy_key: u64Fingerprint of the effective font fallback policy (locale + family config + injection).
This is intended for diagnostics only.
frame_missing_glyphs: u64Total count of missing/tofu glyphs observed across text prepared this frame.
Implementation note: this is currently approximated as the number of shaped glyphs whose
glyph id is 0 (the .notdef glyph) across prepared text runs.
frame_texts_with_missing_glyphs: u64Count of prepared text blobs that contained at least one missing/tofu glyph.
blobs_live: u64§blob_cache_entries: u64§shape_cache_entries: u64§measure_cache_buckets: u64§shape_cache_bytes_estimate_total: u64Best-effort heap byte estimates for text caches (CPU-side).
These values are intended for diagnostics only. They are approximate and may under-count allocator overhead and shared allocations.
blob_paint_palette_bytes_estimate_total: u64§blob_decorations_bytes_estimate_total: u64§unwrapped_layout_cache_entries: u64§frame_unwrapped_layout_cache_hits: u64§frame_unwrapped_layout_cache_misses: u64§frame_unwrapped_layouts_created: u64§frame_cache_resets: u64§frame_blob_cache_hits: u64§frame_blob_cache_misses: u64§frame_blobs_created: u64§frame_shape_cache_hits: u64§frame_shape_cache_misses: u64§frame_shapes_created: u64§mask_atlas: RendererGlyphAtlasPerfSnapshot§color_atlas: RendererGlyphAtlasPerfSnapshot§subpixel_atlas: RendererGlyphAtlasPerfSnapshot§registered_font_blobs_count: u64Best-effort process-local font database/cache counters.
These are intended to help attribute CPU-side footprint concerns (e.g. “too many injected font blobs”) without requiring heap profilers.
registered_font_blobs_total_bytes: u64§family_id_cache_entries: u64§baseline_metrics_cache_entries: u64Trait Implementations§
Source§impl Clone for RendererTextPerfSnapshot
impl Clone for RendererTextPerfSnapshot
Source§fn clone(&self) -> RendererTextPerfSnapshot
fn clone(&self) -> RendererTextPerfSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more