Open Bug 1164744 Opened 9 years ago Updated 2 years ago

Associate layer transaction cost with dom element changes

Categories

(Core :: Graphics, defect)

defect

Tracking

()

People

(Reporter: pchang, Unassigned)

References

Details

(Whiteboard: gfx-noted)

In gecko, the layer transaction happens usually because some dom element/style changes. Developers need to use gecko profiler to record restyle cause to find out why this layer transaction happens. Once we associate the layer transaction cost with the dom element/style changes, we can export this information to WebIDE to let app developers to know the cost of app changes.
Blocks: gfxperf
Assignee: nobody → pchang
Just found there is a nsStyleChangeData[1] which will store the style changed Property on frame tree. I'm checking which elements are stored when style changes happens, comparing to mPendingStyles from RestyleManager. If it is exactly the data I want, I will try to modify this structure and save to a new struct 'render statistic' which could be used to export to gecko profiler, raptor and WebIDE.

[1]https://dxr.mozilla.org/mozilla-central/source/layout/base/nsStyleChangeList.h?from=nsStyleChangeData&case=true#23
During the implementation,we might integrate this association with mozilla telemetry service to provide some histogram. Investigating how did telemetry work.
Whiteboard: gfx-noted

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: howareyou322 → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.