mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00: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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue