servo/components/malloc_size_of
Josh Matthews 878d595035
script: Measure stored layout data memory usage. (#36664)
We previously ignored the opaque layout data field inside each node when
measuring a DOM node's memory usage. While some of the reachable memory
was accounted for by measuring the layout's box tree, measuring it via
the node ensures that we don't miss anything. Since there are often Arc
values involved, this means that the layout-thread box tree measurements
now look quite small, while reported JS heap usage has increased.

Testing: Manually compared about:memory for servo.org.

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-04-24 12:01:51 +00:00
..
Cargo.toml layout: Report memory usage for fragment and box trees. (#36553) 2025-04-18 20:05:15 +00:00
lib.rs script: Measure stored layout data memory usage. (#36664) 2025-04-24 12:01:51 +00:00
LICENSE-APACHE Fork Stylo's malloc_size_of into Servo (#34332) 2024-11-22 14:57:55 +00:00
LICENSE-MIT Fork Stylo's malloc_size_of into Servo (#34332) 2024-11-22 14:57:55 +00:00