Closed Bug 1687857 Opened 4 years ago Closed 4 years ago

Implement the JavaScript Self-Profiling API

Categories

(Core :: Performance, enhancement)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1393617

People

(Reporter: impressive.webs, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

Tried to use the self-profiling API according to https://wicg.github.io/js-self-profiling/.

Actual results:

Not supported in Firefox.

Expected results:

It should be supported, likely for now behind a flag.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Performance Tools (Profiler/Timeline)
Product: Firefox → DevTools

Note that it's a draft, so it's probably not implemented in many places.

This is interesting, at a quick glance it looks like it could control the Gecko Profiler, and our profile data could be converted to the proposal's data structures.

I'm leaving this bug in this component, Julien please forward elsewhere if you can think of a better home. Happy to discuss implementation details with whoever gets to implement it (if not me!)

I think this is more a DOM thing (of course interacting with our team if we want to do it).

Hey Anne, is that on your radar? Do we have a position on this already?

Status: UNCONFIRMED → NEW
Component: Performance Tools (Profiler/Timeline) → DOM: Core & HTML
Ever confirmed: true
Flags: needinfo?(annevk)
Product: DevTools → Core
Version: Firefox 84 → unspecified

I have looked at this a bit, see https://github.com/mozilla/standards-positions/issues/477 (and issues directly against the proposal's repository). Your input would be appreciated as well. Overall it seems like a reasonable idea, although it lacks a formal processing model. Another thing I'm not entirely sure about is whether cross-origin information could be easily gathered if both origins run in the same process.

Flags: needinfo?(annevk)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

The DOM API side would be tiny thing here.

Component: DOM: Core & HTML → Performance
You need to log in before you can comment on or make changes to this bug.