Closed Bug 1732157 Opened 4 years ago Closed 4 years ago

Add profiler markers for runUiThreadCallback

Categories

(GeckoView :: General, task, P3)

Unspecified
All
task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mcomella, Unassigned)

Details

When org.mozilla.gecko.GeckoThread.runUiThreadCallback shows up on the main thread in a profile, doesn't call into other functions so it's difficult to answer essential perf questions like, "What is it executing?", "Does that need to happen now?", and "What caused this method to be running now?" It also makes it difficult for the perf team to identify the root cause of perf issues with this code, causing imprecise perf bug reports that require further investigation. For example, see bug 1693911 and this recent profile we took of opening the tabs tray: https://share.firefox.dev/3AzciFK

I'd suggest adding profiler markers that explain what runUiThreadCallback is executing.

If there is another way to answer "What is runUiThreadCallback" executing from a profile, perhaps this isn't necessary – please let me know how we can do that! :)

Flags: needinfo?(agi)
Priority: -- → P3

If I understand correctly runUiThreadCallback is running native callbacks on the UI thread, you should be able to see what is happening looking at the native frames, is that not enough?

Flags: needinfo?(agi) → needinfo?(michael.l.comella)

Is that by including the AndroidUI thread in the profiler options? I had forgotten about that. If so, I think that's probably good enough and I can reopen if it becomes a problem. Markers would be more specific but maybe it's not worth the implementation effort.

If that's not what you meant, please reopen!

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(michael.l.comella)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.