servo/components/script/dom/bindings
Nicholas Nethercote 7429b90e02 Wire up the JS engine's memory reporting.
SpiderMonkey provides an extremely fine-grained breakdown of memory
usage, but for Servo we aggregate the measurements into a small number
of coarse buckets, which seems appropriate for the current level of
detail provided by Servo's memory profiler. Sample output:
```
|   10.99 MiB -- pages
|       7.75 MiB -- url(http://html5demos.com/worker)
|          4.63 MiB -- js
|             2.00 MiB -- gc-heap
|                0.94 MiB -- decommitted
|                0.92 MiB -- used
|                0.09 MiB -- unused
|                0.05 MiB -- admin
|             1.44 MiB -- malloc-heap
|             1.19 MiB -- non-heap
|          [...]
|       3.24 MiB -- url(http://html5demos.com/js/worker-cruncher.js)
|          3.24 MiB -- js
|             1.17 MiB -- malloc-heap
|             1.06 MiB -- non-heap
|             1.00 MiB -- gc-heap
|                0.69 MiB -- used
|                0.19 MiB -- decommitted
|                0.09 MiB -- unused
|                0.03 MiB -- admin
```
Most of the changes are plumbing to get the script and worker tasks
communicating with the memory profiler task.
2015-07-15 21:58:20 -07:00
..
codegen Move away from the repeat().take().collect() pattern. 2015-07-14 16:19:30 +02:00
callback.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
cell.rs Fix some warnings caused by the SM upgrade 2015-06-19 22:07:08 -04:00
conversions.rs Unpaired surrogates: Document the -Z flag in the panic message. 2015-07-13 20:58:21 +02:00
error.rs Implement window.crypto.getRandomValues() 2015-07-03 18:34:00 +02:00
global.rs Wire up the JS engine's memory reporting. 2015-07-15 21:58:20 -07:00
js.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
mod.rs Generate code into OUT_DIR. 2015-06-17 16:18:22 -06:00
num.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
proxyhandler.rs Fix some warnings caused by the SM upgrade 2015-06-19 22:07:08 -04:00
refcounted.rs Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10) 2015-07-15 00:46:43 +02:00
str.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
structuredclone.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
trace.rs Wire up the JS engine's memory reporting. 2015-07-15 21:58:20 -07:00
utils.rs Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10) 2015-07-15 00:46:43 +02:00