Use single static buffer when capturing stacks for main-thread markers in child processes
Categories
(Core :: Gecko Profiler, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: mozbugz, Assigned: mozbugz)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
Bug 1734867 added a single static buffer for capturing stacks in main-thread markers, however it was only effectively enabled in the parent process, because that buffer must be allocated from the main thread, but in child processes that call is done from a non-main thread -- this should be improved.
Assignee | ||
Comment 1•3 years ago
|
||
In child processes, Gecko Profiler's profiler_start/stop are running OFF the main thread, so the calls to Ensure/ReleaseBufferForMainThreadAddMarker should be dispatched to the main thread for them to actually create/destroy the main-thread buffer.
Note that this is not done in the Base Profiler, because it should always run on the main thread, and if it wasn't there would be no way to dispatch a task to the main thread -- and it wouldn't be too much of an issue anyway, there are few markers running outside of Gecko Profiler sessions.
Comment 3•3 years ago
|
||
bugherder |
Description
•