mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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.
34 lines
547 B
TOML
34 lines
547 B
TOML
[package]
|
|
name = "script_traits"
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
|
|
[lib]
|
|
name = "script_traits"
|
|
path = "lib.rs"
|
|
|
|
[dependencies.msg]
|
|
path = "../msg"
|
|
|
|
[dependencies.net_traits]
|
|
path = "../net_traits"
|
|
|
|
[dependencies.profile_traits]
|
|
path = "../profile_traits"
|
|
|
|
[dependencies.util]
|
|
path = "../util"
|
|
|
|
[dependencies.devtools_traits]
|
|
path = "../devtools_traits"
|
|
|
|
[dependencies.ipc-channel]
|
|
git = "https://github.com/pcwalton/ipc-channel"
|
|
|
|
[dependencies]
|
|
url = "0.2.35"
|
|
libc = "*"
|
|
euclid = "0.1"
|
|
serde = "*"
|
|
serde_macros = "*"
|
|
|