Open Bug 1868805 Opened 2 years ago Updated 2 years ago

[meta] Add a "moz:profiler" module for recording Firefox profiles

Categories

(Remote Protocol :: WebDriver BiDi, enhancement, P3)

enhancement

Tracking

(firefox122 affected)

Tracking Status
firefox122 --- affected

People

(Reporter: canova, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: meta)

After talking with Henrik, I learned that it's pretty straightforward to add a new module to WebDriver BiDi. Currently WebDriver BiDi specification doesn't have anything for tracing/profiling. But we can still experiment with adding some "moz:" vendor specific messages.

One thing is that, currently our implementation doesn't support any vendor prefixes for methods. We should support this first.

If it's fine with you I would make that a meta bug given that we might need multiple bugs for it.

Also should we move it to the Remote Agent component or leave it here?

Keywords: meta
Summary: Experiment adding a vendor specific tracing module to WebDriver BiDi for recording a profile → meta] Experiment adding a vendor specific tracing module to WebDriver BiDi for recording a profile
Summary: meta] Experiment adding a vendor specific tracing module to WebDriver BiDi for recording a profile → [meta] Experiment adding a vendor specific tracing module to WebDriver BiDi for recording a profile

I wasn't sure where to file this initially but yeah, I think Remote Protocol component makes more sense. Moving there.

Component: Gecko Profiler → WebDriver BiDi
Product: Core → Remote Protocol

As discussed we could add a moz:tracing module to allow starting and stopping the recording of a Firefox profile. At the beginning it's probably fine to not stream the recorded profile but just save it to disk based on a file name as given to the start or maybe even the stop method.

Summary: [meta] Experiment adding a vendor specific tracing module to WebDriver BiDi for recording a profile → [meta] Add a "moz:tracing" module for recording Firefox profiles

As commented by Julien over on bug 1868828 the actual API in CDP for the profiler is https://chromedevtools.github.io/devtools-protocol/tot/Profiler/. So we probably should align to it.

Summary: [meta] Add a "moz:tracing" module for recording Firefox profiles → [meta] Add a "moz:profiler" module for recording Firefox profiles
You need to log in before you can comment on or make changes to this bug.