mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Fork Stylo's malloc_size_of
into Servo (#34332)
This is unfortuante, but it's the only way to stop making Stylo's `malloc_size_of` depend on so many of Servo's dependencies. This is an important step on the way toward releasing Stylo as standalone software. When possible, we defer to the implementation of `MallocSizeOf` that is in the base class. One benefit of this change is that we start properly measure the size of WebRender types, which before were always set to zero. In addition the `Measurable` class is removed in favor of simply manually implementing `MallocSizeOf`, which doesn't require uncomfortably modifying the shape of data structures. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
3a32af0c85
commit
a3c2471344
9 changed files with 1138 additions and 133 deletions
37
components/malloc_size_of/Cargo.toml
Normal file
37
components/malloc_size_of/Cargo.toml
Normal file
|
@ -0,0 +1,37 @@
|
|||
[package]
|
||||
name = "servo_malloc_size_of"
|
||||
license = "MIT OR Apache-2.0"
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
publish.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
accountable-refcell = { workspace = true }
|
||||
app_units = { workspace = true }
|
||||
content-security-policy = { workspace = true }
|
||||
crossbeam-channel = { workspace = true }
|
||||
euclid = { workspace = true }
|
||||
http = { workspace = true }
|
||||
indexmap = { workspace = true }
|
||||
keyboard-types = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_bytes = { workspace = true }
|
||||
servo_allocator = { path = "../allocator" }
|
||||
servo_arc = { workspace = true }
|
||||
smallvec = { workspace = true }
|
||||
string_cache = { workspace = true }
|
||||
style = { workspace = true }
|
||||
style_dom = { workspace = true }
|
||||
style_malloc_size_of = { workspace = true }
|
||||
thin-vec = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
url = { workspace = true }
|
||||
uuid = { workspace = true }
|
||||
webrender_api = { workspace = true }
|
||||
wr_malloc_size_of = { workspace = true }
|
||||
xml5ever = { workspace = true }
|
Loading…
Add table
Add a link
Reference in a new issue