Monitor event delays to allow modeling of input event latency at any point
Categories
(Core :: Performance: General, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: jesup, Assigned: jesup)
References
(Blocks 4 open bugs)
Details
Attachments
(7 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
We want to be able to get a finer-grained view of jank by inferring what would be the delay of a hypothetical input event at any point in time. By monitoring the queue and run-start times of events in threads, we can reconstruct what delays an input event would see at any given point. See mozilla.dev.platform post "Measuring interactivity in a browser (especially during load)" 2019/7/31 Message-ID: <ybusgqlq3s5.fsf@jesup.org>
We want to be able to visualize these delays in the profiler (and replace the existing inject-events-every-16ms responsiveness code). We also would like to be able to collect this data (outside the profiler) during raptor runs, and maybe at other times (devtools?)
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Depends on D41279
Comment 3•6 years ago
|
||
Hey there Randell. We're starting an effort to back-fill test coverage on all of our existing profiler features, in order to provide a more reliable product, especially as we're scaling up the users of the profiler. Would you mind adding a test to this new feature? I'd be happy to help point to some of our existing tests, and to review.
I know Gerald has been writing new unit tests for his new C++ machinery, but this feels like a good place to have a more integration style test.
For features that have different behaviors in the parent and content processes I've been using browser tests to ensure both pathways have coverage.
For features that behave consistently no matter the process they are in, I've been using the faster xpcshell tests, e.g.
https://searchfox.org/mozilla-central/source/tools/profiler/tests/xpcshell/test_merged_stacks.js
https://searchfox.org/mozilla-central/source/tools/profiler/tests/xpcshell/test_feature_mainthreadio.js
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D41280
Assignee | ||
Comment 6•6 years ago
|
||
Profile collected using this code to capture responsiveness: https://perfht.ml/2N8pV99
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
|
||
Threadpools run an event that then runs other events, so we need to tweak
things for GetRunningEventDelay()
Depends on D41279
Assignee | ||
Comment 8•6 years ago
|
||
Depends on D41280
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Backed out changeset b3510afc9f79 (bug 1572337) for causing a linting failure in platform.cpp
push that caused the backout: https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&selectedJob=275080356&resultStatus=testfailed%2Cbusted%2Cexception%2Cusercancel%2Crunnable&revision=b3510afc9f796da5a0a5fb1a74eb0d4c96d5d494
backout: https://hg.mozilla.org/integration/autoland/rev/46f56b04700693c563081aa7a56a0f79b9e2176a
Comment 16•6 years ago
|
||
Backed out 3 changesets (bug 1572337, bug 1594015) for causing linting failures and build bustages
Follow up to the backout above.
Comment 17•6 years ago
|
||
Updated•6 years ago
|
![]() |
||
Comment 18•6 years ago
|
||
Assignee | ||
Comment 19•6 years ago
|
||
Avoids deadlocks on Windows
Depends on D41637
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3d2bf6bfe931
https://hg.mozilla.org/mozilla-central/rev/1eedae351266
https://hg.mozilla.org/mozilla-central/rev/e25cefd5d1d1
https://hg.mozilla.org/mozilla-central/rev/1167a0ab6288
https://hg.mozilla.org/mozilla-central/rev/fef6230f3cb2
https://hg.mozilla.org/mozilla-central/rev/2c97624e0f19
https://hg.mozilla.org/mozilla-central/rev/620c4222c7f3
Comment 22•6 years ago
|
||
== Change summary for alert #23812 (as of Mon, 11 Nov 2019 12:32:18 GMT) ==
Improvements:
11% perf_reftest_singletons external-string-pass.html macosx1014-64-shippable opt e10s stylo 1,138.65 -> 1,012.04
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=23812
Assignee | ||
Updated•5 years ago
|
Updated•4 years ago
|
Description
•