Add memory profiling for the compositor task

Currently only the BufferMap is recorded, but a later change will also
measure the memory usage of the compositor tree.
This commit is contained in:
Martin Robinson 2015-07-15 12:16:46 -07:00
parent 9534e8143f
commit 900337e3d1
7 changed files with 48 additions and 9 deletions

View file

@ -474,7 +474,7 @@ struct CefCompositorProxy {
}
impl CompositorProxy for CefCompositorProxy {
fn send(&mut self, msg: compositor_task::Msg) {
fn send(&self, msg: compositor_task::Msg) {
self.sender.send(msg).unwrap();
app_wakeup();
}

View file

@ -805,7 +805,7 @@ struct GlutinCompositorProxy {
unsafe impl Send for GlutinCompositorProxy {}
impl CompositorProxy for GlutinCompositorProxy {
fn send(&mut self, msg: compositor_task::Msg) {
fn send(&self, msg: compositor_task::Msg) {
// Send a message and kick the OS event loop awake.
self.sender.send(msg).unwrap();
if let Some(ref window_proxy) = self.window_proxy {

View file

@ -857,7 +857,7 @@ struct GonkCompositorProxy {
}
impl CompositorProxy for GonkCompositorProxy {
fn send(&mut self, msg: compositor_task::Msg) {
fn send(&self, msg: compositor_task::Msg) {
// Send a message and kick the OS event loop awake.
self.sender.send(msg).ok().unwrap();
self.event_sender.send(WindowEvent::Idle).ok().unwrap();