aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorMukilan Thiyagarajan <mukilan@igalia.com>2024-05-01 15:05:46 +0530
committerGitHub <noreply@github.com>2024-05-01 09:35:46 +0000
commit6065abcb6bfcc28ad1995349b6f16f6752d0f051 (patch)
tree099551449034337a86d3961346b6fcb75a7e04b8 /components/script/script_thread.rs
parentbccbc87db7b986cae31c8f14f0a130336f8417b2 (diff)
downloadservo-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.rs7
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);
}