Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Issue 131823003: DevTools: Implement async call stacks for Promises. (Closed)

Created:
6 years, 11 months ago by aandrey
Modified:
6 years, 11 months ago
CC:
blink-reviews, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, Nils Barth (inactive), caseq+blink_chromium.org, kojih, arv+blink, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, devtools-reviews_chromium.org, loislo+blink_chromium.org, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, haraken, Nate Chapin, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, Inactive, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

DevTools: Implement async call stacks for Promises. BUG=272416 R=yurys, vsevik, yusukesuzuki, yhirano Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165226

Patch Set 1 #

Total comments: 7

Patch Set 2 : more tests, rename [Promise.Fulfilled] -> [Promise.Resolved] #

Total comments: 2

Patch Set 3 : addressed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -6 lines) Patch
A LayoutTests/inspector/debugger/async-callstack-promises.html View 1 2 1 chunk +156 lines, -0 lines 2 comments Download
A LayoutTests/inspector/debugger/async-callstack-promises-expected.txt View 1 2 1 chunk +177 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8PromiseCustom.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8PromiseCustom.cpp View 9 chunks +29 lines, -5 lines 0 comments Download
M Source/core/inspector/AsyncCallStackTracker.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/inspector/AsyncCallStackTracker.cpp View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 1 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
aandrey
6 years, 11 months ago (2014-01-13 11:05:38 UTC) #1
yhirano
Would you explain what InspectorInstrumentation::didPostPromiseTask is and when we should call it? https://codereview.chromium.org/131823003/diff/1/Source/bindings/v8/custom/V8PromiseCustom.cpp File Source/bindings/v8/custom/V8PromiseCustom.cpp ...
6 years, 11 months ago (2014-01-14 04:54:38 UTC) #2
aandrey
On 2014/01/14 04:54:38, yhirano wrote: > Would you explain what InspectorInstrumentation::didPostPromiseTask is and when > ...
6 years, 11 months ago (2014-01-14 05:35:41 UTC) #3
aandrey
https://codereview.chromium.org/131823003/diff/1/Source/bindings/v8/custom/V8PromiseCustom.cpp File Source/bindings/v8/custom/V8PromiseCustom.cpp (right): https://codereview.chromium.org/131823003/diff/1/Source/bindings/v8/custom/V8PromiseCustom.cpp#newcode265 Source/bindings/v8/custom/V8PromiseCustom.cpp:265: InspectorInstrumentation::didPostPromiseTask(context, this, true); On 2014/01/14 04:54:38, yhirano wrote: > ...
6 years, 11 months ago (2014-01-14 05:35:52 UTC) #4
yhirano
1: For the following code, var resolve, reject; new Promise(function(res, rej) { // (a) resolve ...
6 years, 11 months ago (2014-01-15 02:09:30 UTC) #5
yhirano
On 2014/01/15 02:09:30, yhirano wrote: > 1: For the following code, > var resolve, reject; ...
6 years, 11 months ago (2014-01-15 02:12:59 UTC) #6
aandrey
On 2014/01/15 02:09:30, yhirano wrote: > 1: For the following code, > var resolve, reject; ...
6 years, 11 months ago (2014-01-15 06:28:23 UTC) #7
yhirano
Thank you very much, I understand. > I'd collect the stacks at return points of ...
6 years, 11 months ago (2014-01-15 13:28:54 UTC) #8
aandrey
https://codereview.chromium.org/131823003/diff/1/LayoutTests/inspector/debugger/async-callstack-promises.html File LayoutTests/inspector/debugger/async-callstack-promises.html (right): https://codereview.chromium.org/131823003/diff/1/LayoutTests/inspector/debugger/async-callstack-promises.html#newcode25 LayoutTests/inspector/debugger/async-callstack-promises.html:25: function settledPromise(value) On 2014/01/15 13:28:55, yhirano wrote: > Let's ...
6 years, 11 months ago (2014-01-15 14:49:52 UTC) #9
aandrey
On 2014/01/15 13:28:54, yhirano wrote: > Thank you very much, I understand. > > > ...
6 years, 11 months ago (2014-01-15 16:23:18 UTC) #10
yhirano
lgtm https://codereview.chromium.org/131823003/diff/170001/LayoutTests/inspector/debugger/async-callstack-promises.html File LayoutTests/inspector/debugger/async-callstack-promises.html (right): https://codereview.chromium.org/131823003/diff/170001/LayoutTests/inspector/debugger/async-callstack-promises.html#newcode136 LayoutTests/inspector/debugger/async-callstack-promises.html:136: Promise.resolve(1).then(thenCallback, errorCallback) missing semicolon; https://codereview.chromium.org/131823003/diff/170001/LayoutTests/inspector/debugger/async-callstack-promises.html#newcode137 LayoutTests/inspector/debugger/async-callstack-promises.html:137: Promise.reject(Error("2")).then(thenCallback, errorCallback) ...
6 years, 11 months ago (2014-01-16 04:10:12 UTC) #11
yurys
lgtm https://codereview.chromium.org/131823003/diff/250001/LayoutTests/inspector/debugger/async-callstack-promises.html File LayoutTests/inspector/debugger/async-callstack-promises.html (right): https://codereview.chromium.org/131823003/diff/250001/LayoutTests/inspector/debugger/async-callstack-promises.html#newcode48 LayoutTests/inspector/debugger/async-callstack-promises.html:48: var functions = [doTestPromiseConstructor, doTestSettledPromises, doTestChainedPromises, doTestPromiseAll, doTestThrowFromChain, ...
6 years, 11 months ago (2014-01-16 12:49:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/131823003/250001
6 years, 11 months ago (2014-01-16 13:42:25 UTC) #13
aandrey
https://codereview.chromium.org/131823003/diff/250001/LayoutTests/inspector/debugger/async-callstack-promises.html File LayoutTests/inspector/debugger/async-callstack-promises.html (right): https://codereview.chromium.org/131823003/diff/250001/LayoutTests/inspector/debugger/async-callstack-promises.html#newcode48 LayoutTests/inspector/debugger/async-callstack-promises.html:48: var functions = [doTestPromiseConstructor, doTestSettledPromises, doTestChainedPromises, doTestPromiseAll, doTestThrowFromChain, doTestPromiseResolveAndReject]; ...
6 years, 11 months ago (2014-01-16 14:15:27 UTC) #14
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 14:54:26 UTC) #15
Message was sent while issue was closed.
Change committed as 165226

Powered by Google App Engine
This is Rietveld 408576698