Open Bug 1910182 Opened 3 months ago Updated 3 months ago

Allow using the debugger sidebar prototype with the native tracing backend

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: alexical, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1906719 we are adding a native tracing backend, to make tracing more performant. However, that bug only covers using it for the profiler output. This bug tracks using it for the live debugger sidebar.

This is all very much in the prototyping phase, so this will involve a good deal of experimentation and iteration, but ultimately will involve reading from the trace while it is still collecting, to avoid needing to continually rebuild its out of line data.

Some things I want to try out during this phase are:

  • Sending chunks of collected data every N milliseconds to the parent process through its existing pipeline
  • Sharing the underlying ring buffer with the parent process as a shmem, to avoid continually copying data over from the child process to the parent process, and having the parent process read the JS payload from the buffer using an API similar to the Debugger collectNativeTrace method
You need to log in before you can comment on or make changes to this bug.