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

@ -688,6 +688,13 @@ impl LayoutThread {
size: display_list.map_or(0, |sc| sc.heap_size_of_children()),
});
let stylist = rw_data.stylist.as_ref();
reports.push(Report {
path: path![formatted_url, "layout-thread", "stylist"],
kind: ReportKind::ExplicitJemallocHeapSize,
size: stylist.heap_size_of_children(),
});
// The LayoutThread has a context in TLS...
reports.push(Report {
path: path![formatted_url, "layout-thread", "local-context"],