diff options
author | webbeef <me@webbeef.org> | 2025-04-04 22:42:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 05:42:12 +0000 |
commit | aef8537d7537cd886ce0a03e2c845b1c8dd54b6d (patch) | |
tree | 0ea7fe43631884bb7c3bfb4b06e0c1184fb8f3f2 /components/profile/lib.rs | |
parent | 76edcff20262543556f7b14ddbefdf6aaf0059ec (diff) | |
download | servo-aef8537d7537cd886ce0a03e2c845b1c8dd54b6d.tar.gz servo-aef8537d7537cd886ce0a03e2c845b1c8dd54b6d.zip |
Make the memory reporting multi-process aware (#35863)
So far the memory reporter aggregates reports from all processes, and
runs the system reporter only in the main process. Instead it is
desirable to have per-process reports. We do so by:
- creating a ProcessReports struct that holds includes the pid in
addition to the reports themselves.
- running the system memory reporter also in content processes.
- updating the about:memory page to create one report per process, and
add useful information like the pid and the urls loaded in a given
process.
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

Signed-off-by: webbeef <me@webbeef.org>
Diffstat (limited to 'components/profile/lib.rs')
-rw-r--r-- | components/profile/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/profile/lib.rs b/components/profile/lib.rs index 6321decd9c0..733bcce1278 100644 --- a/components/profile/lib.rs +++ b/components/profile/lib.rs @@ -4,7 +4,8 @@ #![deny(unsafe_code)] -#[allow(unsafe_code)] pub mod mem; +#[allow(unsafe_code)] +pub mod system_reporter; pub mod time; pub mod trace_dump; |