Closed Bug 1503468 Opened 6 years ago Closed 6 years ago

Missing AUTO_PROFILER_THREAD_SLEEPs prevent duplication of profiler samples when thread is asleep

Categories

(Core :: Gecko Profiler, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(1 file)

Breaking off from bug 1502998, which initially found that on Linux there is pretty much no duplication happening in content processes.

As per bug 1502998 comment 4, the initial fix for Windows, Mac, and Android is to add some missing AUTO_PROFILER_THREAD_SLEEPs around waits, which are already conveniently highlighted with IDLE markers.

However on Linux the problem looks quite different (too frequent sleep/wake cycles, which prevent duplications), and probably harder to fix.

So I will let bug 1502998 deal with that Linux issue. And this bug here can quickly add the missing SLEEPs.
Though once these are in place, we should check whether they suffer from too-frequent sleep/wake cycles as well (initial tests on my Windows machine showed an improvement in duplications, so I think it's a useful patch to land). I'll add a note in the other bug to follow-up on non-Linux platforms.
These are around wait functions that already had an IDLE marker.
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07f248c9a47d
Add more AUTO_PROFILER_THREAD_SLEEP's - r=mstange
https://hg.mozilla.org/mozilla-central/rev/07f248c9a47d
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Regressions: 1609907
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: