aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/script_layout/lib.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/shared/script_layout/lib.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/shared/script_layout/lib.rs')
-rw-r--r--components/shared/script_layout/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/shared/script_layout/lib.rs b/components/shared/script_layout/lib.rs
index e6d91ee86a0..d4ac0185306 100644
--- a/components/shared/script_layout/lib.rs
+++ b/components/shared/script_layout/lib.rs
@@ -29,7 +29,7 @@ use malloc_size_of_derive::MallocSizeOf;
use metrics::PaintTimeMetrics;
use msg::constellation_msg::{BrowsingContextId, PipelineId};
use net_traits::image_cache::{ImageCache, PendingImageId};
-use profile_traits::mem::ReportsChan;
+use profile_traits::mem::Report;
use profile_traits::time;
use script_traits::{
ConstellationControlMsg, InitialScriptState, LayoutControlMsg, LayoutMsg, LoadData, Painter,
@@ -208,7 +208,7 @@ pub trait Layout {
/// Requests that layout measure its memory usage. The resulting reports are sent back
/// via the supplied channel.
- fn collect_reports(&self, reports_chan: ReportsChan);
+ fn collect_reports(&self, reports: &mut Vec<Report>);
/// Sets quirks mode for the document, causing the quirks mode stylesheet to be used.
fn set_quirks_mode(&mut self, quirks_mode: QuirksMode);