Files
sousa-gecko/remote/webdriver-bidi/modules/root/moz
Nazım Can Altınova 4f5371ca38 Bug 1869522 - [bidi] Add a moz:profiler module with start/stop methods r=Sasha,jdescottes
Adds a new "moz:profiler" vendor-prefixed WebDriver BiDi module that wraps
the Gecko profiler:
  - moz:profiler.start: either { preset } or
                        { entries, interval, features, threads }, plus an
                        optional activeContext
  - moz:profiler.stop({ discard? }) -> { path }
  - moz:profiler.isActive() -> { active }

start accepts either a preset name (read from prefs-presets.sys.mjs) or the
full set of recording options. stop saves the profile to a uniquely named
file in the preferred downloads directory and returns its path, unless
discard is true.

Differential Revision: https://phabricator.services.mozilla.com/D196162
2026-06-25 09:32:36 +00:00
..