Closed Bug 1734935 Opened 3 years ago Closed 3 years ago

Add profiler markers for GeckoSession.onLoadRequest (UI)

Categories

(GeckoView :: General, enhancement)

Unspecified
All
enhancement

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: mcomella, Assigned: mcomella)

Details

Attachments

(1 file)

To complete a page load request from the search screen in fenix, there are three events that need to happen:

  • HomeActivity.load
  • GeckoSession.load (this is the call into Gecko)
  • (if request is redirect) GeckoSession.onLoadRequest

If these requests don't occur synchronously, we'll schedule them on the UI thread, which in practice means page load will be blocked on the expensive (200-500ms on Moto G5) UI transition. We've seen a few issues where this happens (https://github.com/mozilla-mobile/fenix/issues/21530 & https://bugzilla.mozilla.org/show_bug.cgi?id=1734916) so adding profiler markers will be helpful to ensure these events are occurring quickly. We already have markers for the first two: this bug is for the last one.

Here is a profile demonstrating the change (debug build):
https://share.firefox.dev/3iKNmEm

In the ac code, the GeckoResult is expected to be resolved synchronously so I
didn't think it was worth measuring the duration of this method.

Attachment #9245043 - Attachment description: Bug 1734935 - add marker for GeckoSession.onLoadRequest. r=agi → Bug 1734935 - add markers for GeckoSession.onLoadRequest. r=agi
Attachment #9245043 - Attachment description: Bug 1734935 - add markers for GeckoSession.onLoadRequest. r=agi → Bug 1734935 - add marker for GeckoSession.onLoadRequest. r=agi
Pushed by mcomella@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/632d945b4aa3
add marker for GeckoSession.onLoadRequest. r=agi
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: