Closed Bug 1371654 Opened 7 years ago Closed 3 years ago

Gmail: Access Inbox profile

Categories

(Core :: JavaScript Engine, defect, P2)

55 Branch
x86_64
Windows 10
defect

Tracking

()

RESOLVED INACTIVE
Performance Impact low
Tracking Status
firefox55 --- affected
firefox57 --- wontfix

People

(Reporter: afilip, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: perf, Whiteboard: [QRC][QRC_Analyzed])

1.Login into Gmail
2.Start Gecko profile
3.Access inbox
4.Share profile


Gecko profile:
https://perfht.ml/2r2bqpe
Summary: Access Gmail Inbox profile → Gmail: Access Inbox profile
Neerja, could you help to have first profiling? Thanks.
Assignee: nobody → npancholi
Flags: needinfo?(npancholi)
Depends on: 1377515
(In reply to Bobby Chien [:bchien] from comment #1)
> Neerja, could you help to have first profiling? Thanks.

Thanks Bobby, I'll look into it.
Flags: needinfo?(npancholi)
mstange and I looked at this profile today in The Joy of Profiling Episode 8[1].

Most of the profile is JS bound. Folks from the JS team (perhaps sfink or jandem?) should look at this to see if there's anything new in here that's actionable.

Note that the profile is 2 months old. A lot of work has already gone into optimizing JS for Speedometer in the meantime. It might be worth re-gathering this profile to see the current state of things.

Other observations:

1) Some longer paints seem to be blocked on pushing layers, which flushes draw calls to D2D. OMTP could help here.
2) Bug 1374797 might have helped with this, which is more reason to gather a newer, up-to-date profile.

Can a new profile be gathered, please?

[1]: https://air.mozilla.org/the-joy-of-profiling-episode-8/
Flags: needinfo?(afilip)

Here is the profile that you requested https://perfht.ml/2hfXjwj and if i should change interval or the buffer let me know.
Flags: needinfo?(afilip)
Flags: needinfo?(mconley)
This profile shows really nice improvements, at least in terms of jank. We're janking a lot less now, which is good!

The remaining jank looks to be JS bound here: https://perfht.ml/2wr6uk9 . Probably best to have jandem, sfink, or literally anybody from the JS team to look at it to see if there's more work to be done there.

There's some jank where it looks like the compositor (along with the compositor sampling thread, so I can't be sure) was being starved: https://perfht.ml/2wria6r . That is causing the parent to block while it tries to synchronously send an APZ mouse event. I think bug 1366358 should help with this.

There's a big hang in the main thread of the parent process right at the end of the profile, but that looks to be in the guts of the OS when we're trying to peek a UI event, so I don't think there's much we can do about that.
Flags: needinfo?(mconley)
tracking under quantum flow
Component: General → JavaScript Engine
Whiteboard: [QRC][QRC_NeedAnalysis] → [qf][QRC][QRC_Analyzed]
Whiteboard: [qf][QRC][QRC_Analyzed] → [qf:p2][QRC][QRC_Analyzed]
Updating the Gecko Profile based on the latest benchmark measurements.

Name: Firefox
Version: 57.0a1
Windows 10 64 bit
buildID: 20170910220126

Gecko Profile: https://perfht.ml/2w14lfg
(In reply to Mike Conley (:mconley) (:⚙️) from comment #4)
> mstange and I looked at this profile today in The Joy of Profiling Episode
> 8[1].
> 
> Most of the profile is JS bound. Folks from the JS team (perhaps sfink or
> jandem?) should look at this to see if there's anything new in here that's
> actionable.

ni? naveed to see if there's someone who can pick this up on JS team.
Assignee: npancholi → nobody
Flags: needinfo?(nihsanullah)
Steve please take a look. Is this something that still exist in FF57? If so should we address it in beta?
Assignee: nobody → sphink
Flags: needinfo?(nihsanullah) → needinfo?(sphink)
Priority: -- → P2
Keywords: perf
It seems like the remaining issues in this are simply slow JS.  Looking at the time-spent in the profile, the stack seems to primarily decompose into non-jitted script calls, likely due to the first-run nature of the test.
Whiteboard: [qf:p2][QRC][QRC_Analyzed] → [qf:p23[QRC][QRC_Analyzed]
Whiteboard: [qf:p23[QRC][QRC_Analyzed] → [qf:p3][QRC][QRC_Analyzed]
Yeah, I'm not seeing anything actionable here, nice as it would be to speed this up.
Flags: needinfo?(sphink)

I'm not looking at this, and I don't think anyone else is going to either. Please reopen if it's still an issue.

Assignee: sphink → nobody
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INACTIVE
Performance Impact: --- → P3
Whiteboard: [qf:p3][QRC][QRC_Analyzed] → [QRC][QRC_Analyzed]
You need to log in before you can comment on or make changes to this bug.