mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Report memory usage from LayoutThreadData Stylist [#7038]
This commit is contained in:
parent
e551ea7322
commit
db2e10a70f
11 changed files with 133 additions and 164 deletions
|
@ -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"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue