Measure paint task buffer maps in the memory profiler.

Example output from the memory profiler:

```
|       1.04 MiB -- url(http://en.wikipedia.org/wiki/Main_Page)
|          0.26 MiB -- display-list
|          0.78 MiB -- paint-task       # new output line
|             0.78 MiB -- buffer-map    # new output line
```

The buffer maps aren't huge, but they're worth measuring, and it's good
to get the memory profiler plumbing into PaintTask.
This commit is contained in:
Nicholas Nethercote 2015-05-27 18:27:18 -07:00
parent 2ce7b78907
commit a21f6c407c
5 changed files with 53 additions and 2 deletions

View file

@ -136,12 +136,15 @@ impl Pipeline {
};
PaintTask::create(id,
load_data.url.clone(),
paint_chan.clone(),
paint_port,
compositor_proxy,
constellation_chan.clone(),
font_cache_task.clone(),
failure.clone(),
time_profiler_chan.clone(),
mem_profiler_chan.clone(),
paint_shutdown_chan);
LayoutTaskFactory::create(None::<&mut LTF>,