Closed Bug 1958201 Opened 22 days ago Closed 16 days ago

Increase the child timeout to something more sensible

Categories

(Core :: Gecko Profiler, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
139 Branch
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

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.

Pushed by jwajsberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/143927aa36a1 [profiler] Increase the child gathering profile timeout to 15 seconds r=canaltinova

Backed out for causing bc failures at browser_test_profile_slow_capture.js

Backout link

Push with failures

Failure log

Flags: needinfo?(felash)
Pushed by jwajsberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d8d3be046eea [profiler] Increase the child gathering profile timeout to 15 seconds r=canaltinova,profiler-reviewers
Status: NEW → RESOLVED
Closed: 16 days ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: