Closed Bug 1437316 Opened 6 years ago Closed 6 years ago

Still missing reflow markers in some cases

Categories

(Core :: Gecko Profiler, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: mstange, Assigned: canova)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(2 files)

Here's a profile which contains a long reflow for which there is no marker: https://perfht.ml/2Bjeqpn
Priority: -- → P2
It looks like our marker and developer tools' marker are in different places. We are adding a marker inside `PresShell::DoFlushPendingNotifications`[1] and developer tools adding it inside `PresShell::DoReflow` method[2]. DoReflow is the inner method and DoFlushPendingNotifications eventually calls it. The problem is that `DoFlushPendingNotifications` is not the only caller of the `DoReflow` method(For example `PresShell::sPaintSuppressionCallback` also calls[3]). Therefore, we are missing some cases. I think we can also move our marker inside `DoReflow` method to fix this.

[1]: https://searchfox.org/mozilla-central/rev/c3fef66a5b211ea8038c1c132706d02db408093a/layout/base/PresShell.cpp#4343-4347
[2]: https://searchfox.org/mozilla-central/rev/c3fef66a5b211ea8038c1c132706d02db408093a/layout/base/PresShell.cpp#8943
[3]: https://searchfox.org/mozilla-central/rev/c3fef66a5b211ea8038c1c132706d02db408093a/layout/base/PresShell.cpp#2028
Assignee: nobody → canaltinova
Status: NEW → ASSIGNED
Comment on attachment 9006278 [details]
Bug 1437316 - Move the "PresShell::DoReflow" label frame to top side of the method r?mstange

Markus Stange [:mstange] has approved the revision.
Attachment #9006278 - Flags: review+
Comment on attachment 9006280 [details]
Bug 1437316 - Move the profiler marker from DoFlushPendingNotifications to inner DoReflow method r?mstange

Markus Stange [:mstange] has approved the revision.
Attachment #9006280 - Flags: review+
Pushed by canaltinova@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2e6315642e07
Move the "PresShell::DoReflow" label frame to top side of the method r=mstange
Pushed by canaltinova@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c05f1fdd8e44
Move the profiler marker from DoFlushPendingNotifications to inner DoReflow method r=mstange
https://hg.mozilla.org/mozilla-central/rev/2e6315642e07
https://hg.mozilla.org/mozilla-central/rev/c05f1fdd8e44
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Depends on: 1494837
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: