Increase the child timeout to something more sensible
Categories
(Core :: Gecko Profiler, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: julienw, Assigned: julienw)
Details
Attachments
(1 file)
When gathering the profile chunks from processes, there's a timeout to avoid infinite waiting.
The default (and minimum) is 1 second as written in [1] but it can also be changed by a pref in [2].
https://searchfox.org/mozilla-central/rev/7014a821bb4689deb04f647a153a6db10e580a00/modules/libpref/init/all.js#650
We got several reports of losing subprocesses data, especially the ones that were interesting. There's the added issue that the speed will depend on the speed of the computer.
Therefore I'd suggest to increase the timeout to 15 seconds. This is still small enough that if there's a real issue the user won't wait too long, but large enough to let the subprocess generate the json.
[1] https://searchfox.org/mozilla-central/rev/7014a821bb4689deb04f647a153a6db10e580a00/tools/profiler/gecko/nsProfiler.cpp#1280-1283
[2] https://searchfox.org/mozilla-central/rev/7014a821bb4689deb04f647a153a6db10e580a00/modules/libpref/init/all.js#650
Assignee | ||
Comment 1•22 days ago
|
||
When gathering the profile chunks from processes, there's a timeout to
avoid infinite waiting. The default (and minimum) is 1 second but this
can also be specified by a pref.
We got several reports of losing subprocesses data, especially the ones
that were interesting. There's the added issue that the speed will
depend on the speed of the computer.
Therefore this patch changes the pref to increase the timeout to 15
seconds. This is still small enough that if there's a real issue the
user won't wait too long, but large enough to let the subprocess
generate the json.
Comment 3•16 days ago
|
||
Backed out for causing bc failures at browser_test_profile_slow_capture.js
Assignee | ||
Comment 4•16 days ago
|
||
Thanks, I updated the related code.
Some try builds:
https://treeherder.mozilla.org/jobs?repo=try&revision=314fdf62eaa882210980678aea94bcf61c3fd465
https://treeherder.mozilla.org/jobs?repo=try&revision=7a0ace41c9e8f6bc9b63e914a8ef19230aaa8070
Assignee | ||
Comment 5•16 days ago
•
|
||
A new one after Nazim's suggested fix: https://treeherder.mozilla.org/jobs?repo=try&revision=e254d30be765f164819c6ed2f9e141a03564b8ef
Comment 7•16 days ago
|
||
bugherder |
Description
•