pub struct ElementWorkCounters {
pub builds: u64,
pub layouts: u64,
pub paints: u64,
pub hit_tests: u64,
pub layout_cache_hits: u64,
pub layout_cache_misses: u64,
pub layout_propagations: u64,
pub layout_commits: u64,
}Expand description
Permanent per-element counters for retained work actually executed.
Every field saturates at u64::MAX. Counters remain associated with an
element until its retained-tree entry is removed; they count runtime work,
not invalidation requests.
§Examples
use ailloli_ui_runtime::app::ElementWorkCounters;
let counters = ElementWorkCounters::default();
assert_eq!(counters.builds, 0);
assert_eq!(counters.layout_cache_hits, 0);Fields§
§builds: u64Component build/reconciliation executions.
layouts: u64Widget layout executions.
paints: u64Widget paint executions.
hit_tests: u64Element hit-test visits.
layout_cache_hits: u64Retained layout cache hits.
layout_cache_misses: u64Retained layout cache misses.
layout_propagations: u64Layout invalidations propagated through the tree.
layout_commits: u64Post-layout geometry commits.
Trait Implementations§
Source§impl Clone for ElementWorkCounters
impl Clone for ElementWorkCounters
Source§fn clone(&self) -> ElementWorkCounters
fn clone(&self) -> ElementWorkCounters
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 ElementWorkCounters
impl Debug for ElementWorkCounters
Source§impl Default for ElementWorkCounters
impl Default for ElementWorkCounters
Source§fn default() -> ElementWorkCounters
fn default() -> ElementWorkCounters
Returns the “default value” for a type. Read more
Source§impl PartialEq for ElementWorkCounters
impl PartialEq for ElementWorkCounters
impl Copy for ElementWorkCounters
impl Eq for ElementWorkCounters
impl StructuralPartialEq for ElementWorkCounters
Auto Trait Implementations§
impl Freeze for ElementWorkCounters
impl RefUnwindSafe for ElementWorkCounters
impl Send for ElementWorkCounters
impl Sync for ElementWorkCounters
impl Unpin for ElementWorkCounters
impl UnwindSafe for ElementWorkCounters
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,
§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
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.