Bug 151435
Summary: | Web Inspector: Promise callbacks are not profiled | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> |
Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | bburg, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | All | ||
OS: | All |
Joseph Pecoraro
* 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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/23607399>
Joseph Pecoraro
I am addressing this in bug 151899.
*** This bug has been marked as a duplicate of bug 151899 ***
Joseph Pecoraro
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.