servo/components/constellation
webbeef 139774e6b5
Add an about:memory page (#35728)
This patch exposes a servo internal DOM API that is only made available to about:
pages on the navigator object to request memory reports. The about:memory page itself is
loaded like other html resources (eg. bad cert, net error) and makes use of this new API.

On the implementation side, notable changes:
- components/script/routed_promise.rs abstracts the setup used to fulfill a promise when the
  work needs to be routed through the constellation. The goal is to migrate other similar
  promise APIs in followup (eg. dom/webgpu/gpu.rs, bluetooth.rs).
- a new message is added to request a report from the memory reporter, and the memory reporter
  creates a json representation of the set of memory reports.
- the post-processing of memory reports is done in Javascript in the about-memory.html page,
  providing the same results as the current Rust code that outputs to stdout. We can decide
  later if we want to remove the current output.

Signed-off-by: webbeef <me@webbeef.org>
2025-03-07 05:25:08 +00:00
..
browsingcontext.rs Trace more functions by adding perfetto tracing events (#33417) 2024-09-13 05:51:19 +00:00
Cargo.toml Make WebBluetooth an optional feature. (#35479) 2025-02-18 04:13:43 +00:00
constellation.rs Add an about:memory page (#35728) 2025-03-07 05:25:08 +00:00
event_loop.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
lib.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
logging.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
pipeline.rs compositor: Make PipelineDetails and pending paint metrics per-WebView (#35701) 2025-03-04 02:31:23 +00:00
sandboxing.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
serviceworker.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
session_history.rs Upgrade Rust to 1.82.0 (#34592) 2024-12-12 12:00:51 +00:00
tracing.rs Add an about:memory page (#35728) 2025-03-07 05:25:08 +00:00
webview.rs Move non-gfx things out of gfx_traits and create a base crate (#32296) 2024-05-17 12:28:58 +00:00