Skip to main content

drain_css_prop_counts

Function drain_css_prop_counts 

Source
pub fn drain_css_prop_counts() -> Vec<(&'static str, usize)>
Expand description

Drain the per-thread CSS cascade-walk counter populated by CssPropertyCache::get_property when AZ_PROP_COUNT=1 is set in the environment. Returns (property_label, count) pairs sorted by count descending. Layout-side instrumentation calls this after each layout_document to print which properties drove the most cascade walks.