Closed Bug 1874035 Opened 1 year ago Closed 1 year ago

Profiler "render reason" strings are broken

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox122 --- wontfix
firefox123 --- wontfix
firefox124 --- fixed

People

(Reporter: mstange, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Example profile: https://share.firefox.dev/47Apb1U

The render reasons in the profiler markers no longer have readable strings. Now it says things like "Render reason RenderReasons(32768)" instead of "Render reason VSYNC".

https://searchfox.org/mozilla-central/rev/b1a029fadaaabb333d8139f9ec3924a20c0c941f/gfx/wr/webrender/src/renderer/mod.rs#1634-1637

if add_markers {
    let event_str = format!("Render reason {:?}", reason_bit);
    add_event_marker(&event_str);
}

It looks like the Debug implementation on bitfields has changed.

Set release status flags based on info from the regressing bug 1852209

:glandium, since you are the author of the regressor, bug 1852209, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(mh+mozilla)

Ah, this is happening for all the types with a Debug derive where the "custom derive" method is used (https://docs.rs/bitflags/latest/bitflags/#custom-derives)

Assignee: nobody → mh+mozilla
Flags: needinfo?(mh+mozilla)

Mike, could you please assign Priority/Severity ratings to this report when you get a chance?

Flags: needinfo?(mh+mozilla)

bitflags 2 has a shortcoming with using custom derives: you can't use
custom derives (for e.g. MallocSizeOf) at the same time as bitflags's for
the derives it supports.
See https://github.com/bitflags/bitflags/issues/395

Severity: -- → S4
Flags: needinfo?(mh+mozilla)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/45bd6cc1bf74 Add custom Debug derives for bitflags with custom derives. r=gfx-reviewers,emilio,ErichDonGubler
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

The patch landed in nightly and beta is affected.
:glandium, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox123 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mh+mozilla)

Marcus, what do you think?

Flags: needinfo?(mh+mozilla) → needinfo?(mstange.moz)

I'm ok with this being broken on Release a bit more. I mostly look at profiles from Nightly.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: