diff options
author | Mukilan Thiyagarajan <mukilan@igalia.com> | 2024-05-01 15:05:46 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 09:35:46 +0000 |
commit | 6065abcb6bfcc28ad1995349b6f16f6752d0f051 (patch) | |
tree | 099551449034337a86d3961346b6fcb75a7e04b8 /components/script/script_thread.rs | |
parent | bccbc87db7b986cae31c8f14f0a130336f8417b2 (diff) | |
download | servo-6065abcb6bfcc28ad1995349b6f16f6752d0f051.tar.gz servo-6065abcb6bfcc28ad1995349b6f16f6752d0f051.zip |
script: Include layout when collecting memory reports (#32204)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index f799aadbb01..93db23c6201 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -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); } |