Report memory usage from LayoutThreadData Stylist [#7038]

This commit is contained in:
Pawel Kondzior 2016-03-19 00:52:02 -07:00
parent e551ea7322
commit db2e10a70f
11 changed files with 133 additions and 164 deletions

View file

@ -218,7 +218,7 @@ fn combinator_to_restyle_hint(combinator: Option<Combinator>) -> RestyleHint {
}
}
#[derive(Debug)]
#[derive(Debug, HeapSizeOf)]
struct Sensitivities {
pub states: ElementState,
pub attrs: bool,
@ -255,14 +255,14 @@ impl Sensitivities {
// us to quickly scan through the dependency sites of all style rules and determine the
// maximum effect that a given state or attribute change may have on the style of
// elements in the document.
#[derive(Debug)]
#[derive(Debug, HeapSizeOf)]
struct Dependency<Impl: SelectorImplExt> {
selector: Arc<CompoundSelector<Impl>>,
combinator: Option<Combinator>,
sensitivities: Sensitivities,
}
#[derive(Debug)]
#[derive(Debug, HeapSizeOf)]
pub struct DependencySet<Impl: SelectorImplExt> {
deps: Vec<Dependency<Impl>>,
}