mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
f8c2c3c3e4
commit
081b1e93a1
1 changed files with 3 additions and 5 deletions
|
@ -615,20 +615,18 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
}
|
||||
|
||||
(Msg::CollectMemoryReports(reports_chan), ShutdownState::NotShuttingDown) => {
|
||||
let mut reports = vec![];
|
||||
let name = "compositor-task";
|
||||
// These are both `ExplicitUnknownLocationSize` because the memory might be in the
|
||||
// GPU or on the heap.
|
||||
reports.push(mem::Report {
|
||||
let mut reports = vec![mem::Report {
|
||||
path: path![name, "surface-map"],
|
||||
kind: ReportKind::ExplicitUnknownLocationSize,
|
||||
size: self.surface_map.mem(),
|
||||
});
|
||||
reports.push(mem::Report {
|
||||
}, mem::Report {
|
||||
path: path![name, "layer-tree"],
|
||||
kind: ReportKind::ExplicitUnknownLocationSize,
|
||||
size: self.scene.get_memory_usage(),
|
||||
});
|
||||
}];
|
||||
reports_chan.send(reports);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue