Skip to content

Conversation

@Gae24
Copy link
Contributor

@Gae24 Gae24 commented Oct 25, 2025

  • Remove a couple of ignore_malloc_size_of since are not required anymore
  • Avoid calling random and use the worker_id
  • Pass DedicatedWorker event_loop_sender to run_with_memory_profiling

Testing: Covered by tests, only code related to memory reporting was changed.
Fixes: #11855

Gae24 added 3 commits October 24, 2025 14:51
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
@Gae24 Gae24 requested a review from gterzian as a code owner October 25, 2025 17:39
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 25, 2025
@Gae24
Copy link
Contributor Author

Gae24 commented Oct 25, 2025

Tested with workers/semantics/multiple-workers/002.html
Before
memory-test-old
Now
memory-test-new

I'm not sure why system-heap-unclassified report more memory now

@jdm
Copy link
Member

jdm commented Oct 26, 2025

The unclassified number is the total allocation size minus the explicit reports. If we're not longer double counting, I am not surprised to see that number go up.

Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 26, 2025
@jdm jdm added this pull request to the merge queue Oct 26, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 26, 2025
Merged via the queue into servo:main with commit af6b62d Oct 26, 2025
33 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DedicatedWorkerGlobalScope::run_worker_scope shouldn't use parent_sender for run_with_memory_profiling

3 participants