Open
Bug 1499699
Opened 6 years ago
Updated 2 years ago
console.profile() should return a promise, resolved when the profiler actually started
Categories
(DevTools :: Performance Tools (Profiler/Timeline), enhancement, P3)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(Not tracked)
NEW
People
(Reporter: julienw, Unassigned)
References
(Blocks 1 open bug)
Details
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.
Reporter | ||
Comment 1•6 years ago
|
||
From :baku, we should file a spec bug in https://console.spec.whatwg.org/ 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.
Comment 2•6 years ago
|
||
Related on if this worth the investment: https://github.com/whatwg/console/issues/27#issuecomment-289312546 , also mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1499694#c4
Updated•2 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Blocks: perf-console
You need to log in
before you can comment on or make changes to this bug.
Description
•