mirror of
https://github.com/servo/servo.git
synced 2025-08-21 13:25:34 +01:00
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:
parent
9534e8143f
commit
900337e3d1
7 changed files with 48 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue