Skip to content

GenericCallback measures IPCReceiver incorrectly #48034

Closed

Description

@jdm

https://github.com/Uiniel/servo/blob/4171bf4b26f5e6b73b8dfbcf397614b9750e47f5/components/shared/profile/generic_callback.rs#L48-L55

This block accumulates time spent executing the callback, but that's not the intended use of the IpcReceiver profiling marker. IpcReceiver is supposed to contain the time spent sitting in blocking recv() calls. Instead, we should return a profile::generic_channell::IpcReceiver from https://github.com/Uiniel/servo/blob/4171bf4b26f5e6b73b8dfbcf397614b9750e47f5/components/shared/profile/generic_callback.rs#L35-L46, and the GenericCallback struct shouldn't store the ProfilerChan at all.

Activity

  1. added
    E-less-complex
    on Sep 13, 2026
  2. servo-highfive commented on Sep 13, 2026

    @servo-highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.

    If you intend to work on this issue, then add @servo-highfive: assign me to your comment, and I'll assign this to you. 😄

    Please read our policy on AI contributions before getting started.

  3. Uiniel commented on Sep 13, 2026

    @Uiniel
    Contributor

    @servo-highfive: assign me
    Already have a pr prepared that fixes the other half of this issue once #48002 is merged

  4. added
    C-assigned
    on Sep 13, 2026
  5. servo-highfive commented on Sep 13, 2026

    @servo-highfive

    Hey @Uiniel! Thanks for your interest in working on this issue. It's now assigned to you!

  6. added a commit that references this issue on Sep 13, 2026
    2a8c5fa
  7. added a commit that references this issue on Oct 6, 2026
    708d517
  8. added a commit that references this issue on Oct 12, 2026
    02a76ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-perf-measurementC-assignedE-less-complex

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions