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:
Martin Robinson 2015-07-15 18:24:32 -07:00
parent 900337e3d1
commit 5d93f9d5fa
4 changed files with 8 additions and 5 deletions

View file

@ -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);
}