Open Bug 1759777 Opened 2 years ago Updated 2 years ago

Update start/stop/pause/resume notifications to account for promise resolutions

Categories

(Core :: Gecko Profiler, task, P3)

task

Tracking

()

People

(Reporter: mozbugz, Unassigned)

References

Details

The profiler sends nsIObserverService notifications (like "profiler-started" and "profiler-stopped") at the end of the parent-process function.
In particular they are used to update the toolbar button.

Now that these profiler functions also return promises that are resolved when all child processes have completed their part, It would be good to revisit these notifications to account for promise resolutions in some places.

For example, the toolbar button could transition to orange on "profiler-started" (which should probably be renamed to something like "profiler-parent-started" for clarity), and later the button would change to its normal blue "running" color when receiving a new "profiler-fully-started" notification when the promise is resolved.

This bug here will focus on the notifications that the profiler produces. Follow-up bugs will handle the new notifications wherever appropriate.

You need to log in before you can comment on or make changes to this bug.