Closed
Bug 1244684
Opened 9 years ago
Closed 9 years ago
FX_TAB_SWITCH_TOTAL_MS is broken
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: gkrizsanits, Assigned: mconley)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
58 bytes,
text/x-review-board-request
|
mstange
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta-
|
Details |
5.48 KB,
application/zip
|
Details |
We used to collect data about tab switch time in non-e10s mode with this, but it's not working any longer. See the telemetry dashboard and Bug 1198191 Comment 5.
Reporter | ||
Updated•9 years ago
|
Blocks: 1198191
tracking-e10s:
--- → ?
Updated•9 years ago
|
Assignee: nobody → gwright
Assignee | ||
Comment 1•9 years ago
|
||
Talked to gw280 over IRC, going to steal this one.
Assignee: gwright → mconley
Assignee | ||
Comment 2•9 years ago
|
||
I bisected this on OS X to wayyyyyy back into 2013.
This got broken by turning on OMTC by default.
Blocks: 756601
Assignee | ||
Comment 3•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/35717/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/35717/
Attachment #8721578 -
Flags: review?(bgirard)
Assignee | ||
Comment 4•9 years ago
|
||
https://reviewboard.mozilla.org/r/35717/#review32367
I'm really not 100% certain this is the right place to put this, but it more or less mirrors where it's put inside BasicLayerManager.
Assignee | ||
Updated•9 years ago
|
Attachment #8721578 -
Flags: review?(bgirard) → review?(mstange)
Comment 5•9 years ago
|
||
Comment on attachment 8721578 [details]
MozReview Request: Bug 1244684 - Call PostPresent after ClientLayerManager::EndTransactionInternal to fix busted FX_TAB_SWITCH_TOTAL_MS probe. r?BenWa
https://reviewboard.mozilla.org/r/35717/#review32689
This looks fine. Another option would be to put it in ClientLayerManager::EndTransaction after the call to ForwardTransaction so that you'd also capture the cost of sending the transaction to the compositor.
I should also mention that PostPresent is no longer a good name for this method, because "present" usually refers to actually pushing the pixels to the screen (e.g. through SwapBuffers) which, with OMTC, happens on the compositor thread. But before you try to fix that, I think you should decide what it is that you really want to measure here, because with OMTC and e10s we have two additional sources of asynchronicity that weren't a concern when the tab switch timing was written initially. With this patch, what you'll be measuring is the time it takes for the parent process to update its internal state to the new selected tab and paint the first frame of that change, which includes stuff like updating the forward button enabled state, but does *not* include any of the following: painting the contents of the new tab, painting the "tab" in the tab strip (because the old one will stay visuallyselected until the tab switch is complete), compositing the result of that first parent process paint.
Attachment #8721578 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 6•9 years ago
|
||
Huh, okay, so I don't think this patch is exactly right yet. What we really want to do is capture the length of time between the start of the tab switch, and tab content being displayed. Because OMTC kind of changed the world here, we have to operate slightly differently.
I think the right move is to start the stopwatch as soon as the user has selected a tab, and then stop it at the next MozAfterPaint event on the window.
Assignee | ||
Comment 7•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/36091/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/36091/
Attachment #8722551 -
Flags: review?(mstange)
Assignee | ||
Updated•9 years ago
|
Attachment #8721578 -
Attachment is obsolete: true
Comment 8•9 years ago
|
||
Comment on attachment 8722551 [details]
MozReview Request: Bug 1244684 - Make FX_TAB_SWITCH_TOTAL_MS work for non-e10s in an OMTC world. r?mstange
https://reviewboard.mozilla.org/r/36091/#review32699
Looks good, but you should of course double-check that the numbers look fine.
Do you know how the telemetry stop watch deals with overlapping ranges? For example, if compositing is very slow, it could be possible that two tab switches are done before we're done compositing the first one, and then you'd have "start" "start" "end" "end".
Attachment #8722551 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 9•9 years ago
|
||
https://reviewboard.mozilla.org/r/36091/#review32699
I think in that case, a pre-existing timer for that probe is cancelled and an error is displayed:
https://dxr.mozilla.org/mozilla-central/rev/789a12291942763bc1e3a89f97e0b82dc1c9d00b/toolkit/components/telemetry/TelemetryStopwatch.jsm#130
Assignee | ||
Comment 10•9 years ago
|
||
https://reviewboard.mozilla.org/r/36091/#review32699
Also, the numbers coming in for this probe while testing locally look sane.
Assignee | ||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/5edc2330c4cf536785b4019e5443f58e4b307c34
Bug 1244684 - Make FX_TAB_SWITCH_TOTAL_MS work for non-e10s in an OMTC world. r=mstange
Comment 12•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 13•9 years ago
|
||
Mike, should we uplift your FX_TAB_SWITCH_TOTAL_MS fix to Aurora 46?
status-firefox44:
--- → wontfix
status-firefox45:
--- → affected
status-firefox46:
--- → affected
Flags: needinfo?(mconley)
Reporter | ||
Comment 14•9 years ago
|
||
I would love this one to be uplifted (see bug 1198191 comment 14). Maybe even to beta?
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8722551 [details]
MozReview Request: Bug 1244684 - Make FX_TAB_SWITCH_TOTAL_MS work for non-e10s in an OMTC world. r?mstange
Approval Request Comment
[Feature/regressing bug #]:
OMTC, back in 2013.
[User impact if declined]:
None, though it's going to make doing some e10s / non-e10s telemetry comparisons harder.
[Describe test coverage new/current, TreeHerder]:
Been in the mozilla-central for a few days with no ill effects.
[Risks and why]:
Very low risk - this makes a telemetry probe work correctly after having been broken for about 3 years.
[String/UUID change made/needed]:
None.
Flags: needinfo?(mconley)
Attachment #8722551 -
Flags: approval-mozilla-beta?
Attachment #8722551 -
Flags: approval-mozilla-aurora?
Updated•9 years ago
|
Comment 16•9 years ago
|
||
Comment on attachment 8722551 [details]
MozReview Request: Bug 1244684 - Make FX_TAB_SWITCH_TOTAL_MS work for non-e10s in an OMTC world. r?mstange
We ship 45 in a week, we only take important fixes and I am not sure this is important ;)
Attachment #8722551 -
Flags: approval-mozilla-beta?
Attachment #8722551 -
Flags: approval-mozilla-beta-
Attachment #8722551 -
Flags: approval-mozilla-aurora?
Attachment #8722551 -
Flags: approval-mozilla-aurora+
Comment 17•9 years ago
|
||
landed by mike as https://hg.mozilla.org/releases/mozilla-aurora/rev/6aaf9904a81d setting flags
Assignee | ||
Comment 18•9 years ago
|
||
Ack! Sorry I didn't do that myself!
Assignee | ||
Comment 19•8 years ago
|
||
Comment hidden (obsolete) |
Assignee | ||
Updated•8 years ago
|
Attachment #8774185 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•