gecko-dev/tools/profiler/gecko
Gerald Squelart 833ccac51b Bug 1673513 - Use ProfilerParent::RequestGatherProfileProgress to wait for slow but responsive processes - r=florian
Instead of waiting a set time guessed from how long the parent process took to do its work, after a short time the parent process requests progress updates from all still-pending child processes, and restarts the timer if any progress was made.
If processes become unresponsive, they will be the last ones pending, and after one timer cycle without any progress anywhere, the parent process won't wait for children anymore, and will output all profiles successfully gathered so far.

Added `MOZ_LOG=prof` logging in nsProfiler.cpp, to monitor profile-gathering. (And removed a spurious 'd' character in the `LOG` macro.)

Differential Revision: https://phabricator.services.mozilla.com/D135488
2022-01-31 02:22:30 +00:00
..
ChildProfilerController.cpp Bug 1710607 - If not profiling, make ShutdownProfilerChild dispatch SYNC - r=canaltinova 2021-05-12 10:44:33 +00:00
components.conf
nsIProfiler.idl Bug 1639716 - [profiler] Remove the profiler disabling by private browsing r=jdescottes,gerald,devtools-backward-compat-reviewers 2022-01-26 17:26:21 +00:00
nsProfiler.cpp Bug 1673513 - Use ProfilerParent::RequestGatherProfileProgress to wait for slow but responsive processes - r=florian 2022-01-31 02:22:30 +00:00
nsProfiler.h Bug 1673513 - Use ProfilerParent::RequestGatherProfileProgress to wait for slow but responsive processes - r=florian 2022-01-31 02:22:30 +00:00
nsProfilerCIID.h
nsProfilerStartParams.cpp Bug 1698129 - Rename browsingContextID to tabID inside the profiler codebase r=julienw,gerald,devtools-backward-compat-reviewers 2021-03-25 12:52:10 +00:00
nsProfilerStartParams.h Bug 1698129 - Rename browsingContextID to tabID inside the profiler codebase r=julienw,gerald,devtools-backward-compat-reviewers 2021-03-25 12:52:10 +00:00
PProfiler.ipdl Bug 1673513 - GetGatherProfileProgress() IPC - r=florian 2022-01-31 02:22:29 +00:00
ProfilerChild.cpp Bug 1673513 - GetGatherProfileProgress() IPC - r=florian 2022-01-31 02:22:29 +00:00
ProfilerIOInterposeObserver.cpp Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova 2021-11-08 23:59:35 +00:00
ProfilerIOInterposeObserver.h
ProfilerParent.cpp Bug 1673513 - ProfilerParent::RequestGatherProfileProgress(aChildPid) - r=florian 2022-01-31 02:22:29 +00:00
ProfilerTypes.ipdlh Bug 1673513 - GetGatherProfileProgress() IPC - r=florian 2022-01-31 02:22:29 +00:00