pub struct CssPropertyCacheBreakdown {
pub node_count: usize,
pub cascaded_props_bytes: usize,
pub css_props_bytes: usize,
pub computed_values_bytes: usize,
pub user_overridden_bytes: usize,
pub global_css_props_bytes: usize,
pub compact_cache_bytes: usize,
pub resolved_font_sizes_bytes: usize,
}Expand description
Heap-size breakdown of a CssPropertyCache, produced by
CssPropertyCache::memory_breakdown. All values in bytes.
Primarily a diagnostic — the numbers are capacity-based and
don’t chase into property-variant payloads (e.g. the Vec
inside a FontFamily(...)). Intended for “which subfield is
eating RSS” triage, not for precise accounting.
Fields§
§node_count: usize§cascaded_props_bytes: usize§css_props_bytes: usize§computed_values_bytes: usize§user_overridden_bytes: usize§global_css_props_bytes: usize§compact_cache_bytes: usize§resolved_font_sizes_bytes: usizeImplementations§
Source§impl CssPropertyCacheBreakdown
impl CssPropertyCacheBreakdown
Sourcepub fn total_bytes(&self) -> usize
pub fn total_bytes(&self) -> usize
Sum of all subfields.
Trait Implementations§
Source§impl Clone for CssPropertyCacheBreakdown
impl Clone for CssPropertyCacheBreakdown
Source§fn clone(&self) -> CssPropertyCacheBreakdown
fn clone(&self) -> CssPropertyCacheBreakdown
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 moreSource§impl Debug for CssPropertyCacheBreakdown
impl Debug for CssPropertyCacheBreakdown
Source§impl Default for CssPropertyCacheBreakdown
impl Default for CssPropertyCacheBreakdown
Source§fn default() -> CssPropertyCacheBreakdown
fn default() -> CssPropertyCacheBreakdown
Returns the “default value” for a type. Read more
impl Copy for CssPropertyCacheBreakdown
Auto Trait Implementations§
impl Freeze for CssPropertyCacheBreakdown
impl RefUnwindSafe for CssPropertyCacheBreakdown
impl Send for CssPropertyCacheBreakdown
impl Sync for CssPropertyCacheBreakdown
impl Unpin for CssPropertyCacheBreakdown
impl UnsafeUnpin for CssPropertyCacheBreakdown
impl UnwindSafe for CssPropertyCacheBreakdown
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