Open Bug 1499699 Opened 3 years ago Updated 3 years ago

console.profile() should return a promise, resolved when the profiler actually started


(DevTools :: Performance Tools (Profiler/Timeline), enhancement, P3)



(Not tracked)


(Reporter: julienw, Unassigned)



With the current API it's difficult for the user to know when the profiler actually started. There's 2 solutions to this:

1. return only when the profiler started.
2. return a promise that would be resolved when the profiler started.

I think Chrome is doing 1. (although I couldn't really get this to work in current Chrome versions). But because this isn't standardized and isn't supposed to be cross-browsers, and at this time and age, I think we should return a promise.
See Also: → 1240249
From :baku, we should file a spec bug in before implementing this, if only to specify that this isn't supposed to be cross-browser, or that it should/shouldn't be exposed to web content.
You need to log in before you can comment on or make changes to this bug.