mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
script: Include layout when collecting memory reports (#32204)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
bccbc87db7
commit
6065abcb6b
4 changed files with 13 additions and 12 deletions
|
@ -2556,6 +2556,13 @@ impl ScriptThread {
|
|||
|
||||
let mut reports = vec![];
|
||||
reports.extend(unsafe { get_reports(*self.get_cx(), path_seg) });
|
||||
SCRIPT_THREAD_ROOT.with(|root| {
|
||||
let script_thread = unsafe { &*root.get().unwrap() };
|
||||
let layouts = script_thread.layouts.borrow();
|
||||
for layout in layouts.values() {
|
||||
layout.collect_reports(&mut reports);
|
||||
}
|
||||
});
|
||||
reports_chan.send(reports);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue