pub struct EditorFrameDebugMetrics {
pub frame_id: u64,
pub visible_layout_us: u64,
pub paragraph_cache_hits: usize,
pub paragraph_cache_misses: usize,
pub syntax_parse_us: u64,
pub symbol_index_us: u64,
pub paint_item_count: usize,
pub glyph_upload_count: usize,
pub used_fast_path: bool,
}Expand description
Per-frame performance counters measured by the editor engine.
Times are integer microseconds and may be zero below clock resolution.
Counts are per frame; used_fast_path reports the large-document path.
§Examples
use ailloli_ui_editor::EditorFrameDebugMetrics;
let name = std::any::type_name::<EditorFrameDebugMetrics>();
assert!(name.ends_with("EditorFrameDebugMetrics"));Fields§
§frame_id: u64Monotonically wrapping engine frame ID.
visible_layout_us: u64Visible paragraph layout time in microseconds.
paragraph_cache_hits: usizeParagraph layouts reused from cache.
paragraph_cache_misses: usizeParagraph layouts newly prepared.
syntax_parse_us: u64Syntax refresh time in microseconds.
symbol_index_us: u64Symbol indexing time in microseconds.
paint_item_count: usizeNumber of neutral paint items emitted.
glyph_upload_count: usizeGlyph uploads attributed by the adapter; zero in engine-only frames.
used_fast_path: boolWhether large-document fast-path thresholds selected reduced work.
Trait Implementations§
Source§impl Clone for EditorFrameDebugMetrics
impl Clone for EditorFrameDebugMetrics
Source§fn clone(&self) -> EditorFrameDebugMetrics
fn clone(&self) -> EditorFrameDebugMetrics
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorFrameDebugMetrics
impl Debug for EditorFrameDebugMetrics
Source§impl PartialEq for EditorFrameDebugMetrics
impl PartialEq for EditorFrameDebugMetrics
impl Copy for EditorFrameDebugMetrics
impl StructuralPartialEq for EditorFrameDebugMetrics
Auto Trait Implementations§
impl Freeze for EditorFrameDebugMetrics
impl RefUnwindSafe for EditorFrameDebugMetrics
impl Send for EditorFrameDebugMetrics
impl Sync for EditorFrameDebugMetrics
impl Unpin for EditorFrameDebugMetrics
impl UnwindSafe for EditorFrameDebugMetrics
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