RESOLVED DUPLICATE of bug 151899 151435
Web Inspector: Promise callbacks are not profiled
https://bugs.webkit.org/show_bug.cgi?id=151435
Summary Web Inspector: Promise callbacks are not profiled
Joseph Pecoraro
Reported 2015-11-18 22:33:37 PST
* SUMMARY Promise callbacks are not profiled * TEST <button id="x">Click</button> <script> window.x.onclick = function() { Promise.resolve(100).then(function() { alert("test"); }); }; </script> * STEPS TO REPRODUCE 1. Inspect test page 2. Start timeline 3. Click button 4. Dismiss alert 5. Stop timeline => Scripts Timeline does not show the promise handler * NOTES Likely places to look are: - JSJobMicrotask::run - JSJob.cpp - JSPromiseDeferred::resolve and JSPromiseDeferred::reject - JSPromiseDeferred.cpp - JSInternalPromise::then - JSInternalPromise.cpp
Attachments
Radar WebKit Bug Importer
Comment 1 2015-11-18 22:33:50 PST
Joseph Pecoraro
Comment 2 2015-12-09 18:56:00 PST
I am addressing this in bug 151899. *** This bug has been marked as a duplicate of bug 151899 ***
Joseph Pecoraro
Comment 3 2015-12-09 18:57:29 PST
To be clear that bug profiles it in ScriptProfiler, it won't yet show up in a Page inspection until we move Page inspection to using ScriptProfiler. A follow-up to that.
Note You need to log in before you can comment on or make changes to this bug.