Capture Telemetry to measure the time to render the first about:home
Categories
(Firefox :: New Tab Page, enhancement, P1)
Tracking
()
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Keywords: github-merged, Whiteboard: [fxperf:p1])
Attachments
(3 files, 1 obsolete file)
By default, about:home is the first page that loads in a new browser session.
We want to measure and optimize the start-up timeline, including the time to display about:home.
As far as I can tell, we don't measure that time anywhere, so this bug is about getting that measurement recorded.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Hey dmose,
So this is my hacky attempt at getting a best-estimate on when a significant chunk of about:home is presented to the user, under the following conditions:
- It's the first about:home the user has seen
- The user is configured to show about:home by default when starting, rather than restoring the previous session
- about:home hasn't been overridden with a new URI
The values I'm getting when tested locally seem to more or less line up with what's showing up in the profile, so I think my time delta is more or less correct.
The reason I ended up putting some gunk in the aboutNewTabService was because I wasn't sure what the expected lifetime of TelemetryFeed.jsm is, or whether or not it's a problem to have static state set in that module (the static state of, "I recorded this value before, please don't do it again").
If we expect TelemetryFeed to only ever be instantiated once, we can maybe put the state in a member variable. Or if it's okay to stash some state in the TelemetryFeed global, that works for me too. That way we can avoid moving that state over to aboutNewTabService.
Thoughts? Or can you think of a better way of capturing this?
Assignee | ||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
:mconley: I'm in crunch mode this week, so I probably won't be able to get you useful feedback until next week. Sorry for the delay...
Assignee | ||
Comment 4•6 years ago
|
||
Redirecting to andreio at dmose's suggestion.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Hey nanj, just a heads up that the patch to add the scalar is now on autoland.
Comment 12•6 years ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #11)
Hey nanj, just a heads up that the patch to add the scalar is now on autoland.
Woot, also got the data+. will merge that patch after this.
Thanks!
Comment 13•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
I have verified this issue with the latest Firefox Beta (67.0b9 Build ID - 20190408123043) and with the latest Firefox Nightly (68.0a1 Build ID - 20190410215612) installed, on Windows 10 x64, Arch Linux and Mac 10.13.3. Now, the new "timestamps.about_home_topsites_first_paint" scalar is displayed on the "about:telemetry#scalars-tab" page after a session restoration.
Updated•6 years ago
|
Description
•