Skip to content

devtools: Replace new with register for PerformanceActor#43921

Merged
eerii merged 2 commits into
servo:mainfrom
sabbCodes:issue-43800-performance-actor
Apr 4, 2026
Merged

devtools: Replace new with register for PerformanceActor#43921
eerii merged 2 commits into
servo:mainfrom
sabbCodes:issue-43800-performance-actor

Conversation

@sabbCodes
Copy link
Copy Markdown
Contributor

Replaced new with register for PerformanceActor in performance.rs & root.rs

Testing: No testing required, compiles successfully.
Fixes: Part of #43800

Signed-off-by: Sabb <sarafaabbas@gmail.com>
@sabbCodes sabbCodes requested review from atbrakhi and eerii as code owners April 4, 2026 07:40
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 4, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 4, 2026
Comment thread components/devtools/actors/root.rs Outdated
// Global actors
let device_name = DeviceActor::register(registry);
let perf = PerformanceActor::new(registry.new_name::<PerformanceActor>());
let perf_actor = PerformanceActor::register(registry);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry. Could you change this to performance_name? We have to keep the perf_actor in the struct below, but we can change this one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Okay, I'm still on the branch :)

@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Apr 4, 2026
Signed-off-by: Sabb <sarafaabbas@gmail.com>
@sabbCodes sabbCodes force-pushed the issue-43800-performance-actor branch from feca6bf to 3d3bfeb Compare April 4, 2026 07:57
Copy link
Copy Markdown
Member

@eerii eerii left a comment

Choose a reason for hiding this comment

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

Thanks for the change :)

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 4, 2026
@eerii eerii added this pull request to the merge queue Apr 4, 2026
@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 Apr 4, 2026
Merged via the queue into servo:main with commit 0b6b973 Apr 4, 2026
30 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 Apr 4, 2026
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.

3 participants