pub struct TreeViewDiagnosticsSnapshot {
pub layout_calls: u64,
pub paint_calls: u64,
pub hit_tests: u64,
pub loaded_rows: usize,
pub visible_rows: usize,
pub layout_rows_visited: u64,
pub paint_rows_visited: u64,
pub hit_test_rows_visited: u64,
pub flatten_rebuilds: u64,
pub snapshot_rows_cloned: u64,
pub text_measurements: u64,
pub virtualization_fallbacks: u64,
}Expand description
Point-in-time copy of tree structural/virtualization counters.
Counters are cumulative except loaded_rows and visible_rows, which report
the latest measured totals/range.
§Examples
use ailloli_ui_widgets::controls::TreeViewDiagnosticsSnapshot;
let snapshot = TreeViewDiagnosticsSnapshot::default();
assert_eq!((snapshot.loaded_rows, snapshot.flatten_rebuilds), (0, 0));Fields§
§layout_calls: u64Saturating number of widget layout calls.
paint_calls: u64Saturating number of widget paint calls.
hit_tests: u64Saturating number of row hit-test attempts.
loaded_rows: usizeTotal source rows observed by the latest layout/paint.
visible_rows: usizeRows visited by the latest layout/paint range.
layout_rows_visited: u64Saturating cumulative rows visited for layout measurement.
paint_rows_visited: u64Saturating cumulative rows visited for paint.
hit_test_rows_visited: u64Saturating cumulative successful single-row hit-test visits.
flatten_rebuilds: u64Greatest observed retained rebuild count or snapshot-cache rebuild count.
snapshot_rows_cloned: u64Saturating cumulative snapshot rows cloned while rebuilding flat caches.
text_measurements: u64Saturating cumulative layout rows submitted for text measurement.
virtualization_fallbacks: u64Saturating count of virtual layouts falling back to the entire tree.
Trait Implementations§
Source§impl Clone for TreeViewDiagnosticsSnapshot
impl Clone for TreeViewDiagnosticsSnapshot
Source§fn clone(&self) -> TreeViewDiagnosticsSnapshot
fn clone(&self) -> TreeViewDiagnosticsSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TreeViewDiagnosticsSnapshot
impl Debug for TreeViewDiagnosticsSnapshot
Source§impl Default for TreeViewDiagnosticsSnapshot
impl Default for TreeViewDiagnosticsSnapshot
Source§fn default() -> TreeViewDiagnosticsSnapshot
fn default() -> TreeViewDiagnosticsSnapshot
impl Copy for TreeViewDiagnosticsSnapshot
impl Eq for TreeViewDiagnosticsSnapshot
impl StructuralPartialEq for TreeViewDiagnosticsSnapshot
Auto Trait Implementations§
impl Freeze for TreeViewDiagnosticsSnapshot
impl RefUnwindSafe for TreeViewDiagnosticsSnapshot
impl Send for TreeViewDiagnosticsSnapshot
impl Sync for TreeViewDiagnosticsSnapshot
impl Unpin for TreeViewDiagnosticsSnapshot
impl UnwindSafe for TreeViewDiagnosticsSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.