mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Report layer tree memory usage
rust-layers can now deliver the memory usage of a layer tree, so include that in the reports.
This commit is contained in:
parent
900337e3d1
commit
5d93f9d5fa
4 changed files with 8 additions and 5 deletions
|
@ -492,9 +492,12 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
|
||||
(Msg::CollectMemoryReports(reports_chan), ShutdownState::NotShuttingDown) => {
|
||||
let mut reports = vec![];
|
||||
let name = "compositor-task";
|
||||
reports.push(mem::Report {
|
||||
path: path!["compositor-task", "buffer-map"],
|
||||
size: self.buffer_map.mem(),
|
||||
path: path![name, "buffer-map"], size: self.buffer_map.mem(),
|
||||
});
|
||||
reports.push(mem::Report {
|
||||
path: path![name, "layer-tree"], size: self.scene.get_memory_usage(),
|
||||
});
|
||||
reports_chan.send(reports);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue