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

Issue 118293002: DevTools: Support XHR async call stacks in the debugger. (Closed)

Created:
7 years ago by aandrey
Modified:
7 years ago
Reviewers:
yurys
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, Inactive, devtools-reviews_chromium.org, arv+blink, aandrey+blink_chromium.org, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

DevTools: Support XHR async call stacks in the debugger. With this we will collect XHR async call stacks at the point of calling XHR.send() rather than at XHR.addEventListener() or at assigning XHR.onreadystatechange. For XMLHttpRequestUpload event target callbacks show async call stacks of the owner XHR object. Drive-by: Do strict counting of the nested willHandleEvent callbacks. BUG=272416 R=yurys@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164291

Patch Set 1 #

Patch Set 2 : include AtomicStringHash.h #

Patch Set 3 : split tests #

Total comments: 17

Patch Set 4 : addressed #

Total comments: 2

Patch Set 5 : addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -76 lines) Patch
M LayoutTests/http/tests/inspector/debugger-test.js View 1 2 3 3 chunks +44 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/inspector/inspector-test.js View 1 2 3 2 chunks +0 lines, -18 lines 0 comments Download
M LayoutTests/inspector/debugger/async-callstack.html View 1 2 3 1 chunk +1 line, -32 lines 0 comments Download
M LayoutTests/inspector/debugger/async-callstack-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/inspector/debugger/async-callstack-middle-run.html View 1 2 3 1 chunk +143 lines, -0 lines 0 comments Download
A LayoutTests/inspector/debugger/async-callstack-middle-run-expected.txt View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A LayoutTests/inspector/debugger/async-callstack-xhrs.html View 1 2 3 1 chunk +79 lines, -0 lines 0 comments Download
A LayoutTests/inspector/debugger/async-callstack-xhrs-expected.txt View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M Source/core/inspector/AsyncCallStackTracker.h View 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/inspector/AsyncCallStackTracker.cpp View 1 2 3 4 8 chunks +77 lines, -18 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.h View 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
aandrey
7 years ago (2013-12-18 14:51:06 UTC) #1
aandrey
ping?
7 years ago (2013-12-23 06:00:13 UTC) #2
yurys
https://codereview.chromium.org/118293002/diff/40001/LayoutTests/http/tests/inspector/debugger-test.js File LayoutTests/http/tests/inspector/debugger-test.js (right): https://codereview.chromium.org/118293002/diff/40001/LayoutTests/http/tests/inspector/debugger-test.js#newcode88 LayoutTests/http/tests/inspector/debugger-test.js:88: maxAsyncCallStackDepth = maxAsyncCallStackDepth || 4; Please make it a ...
7 years ago (2013-12-23 09:11:57 UTC) #3
aandrey
PTAL https://codereview.chromium.org/118293002/diff/40001/LayoutTests/http/tests/inspector/debugger-test.js File LayoutTests/http/tests/inspector/debugger-test.js (right): https://codereview.chromium.org/118293002/diff/40001/LayoutTests/http/tests/inspector/debugger-test.js#newcode88 LayoutTests/http/tests/inspector/debugger-test.js:88: maxAsyncCallStackDepth = maxAsyncCallStackDepth || 4; On 2013/12/23 09:11:57, ...
7 years ago (2013-12-23 12:09:37 UTC) #4
yurys
LGTM, please add to the description note that we need to show call stack at ...
7 years ago (2013-12-23 12:40:30 UTC) #5
aandrey
https://codereview.chromium.org/118293002/diff/40001/Source/core/inspector/AsyncCallStackTracker.cpp File Source/core/inspector/AsyncCallStackTracker.cpp (right): https://codereview.chromium.org/118293002/diff/40001/Source/core/inspector/AsyncCallStackTracker.cpp#newcode313 Source/core/inspector/AsyncCallStackTracker.cpp:313: if (xhr == eventTarget && eventType == EventTypeNames::loadend) On ...
7 years ago (2013-12-23 13:01:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/118293002/150001
7 years ago (2013-12-23 13:01:41 UTC) #7
commit-bot: I haz the power
7 years ago (2013-12-23 13:59:15 UTC) #8
Message was sent while issue was closed.
Change committed as 164291

Powered by Google App Engine
This is Rietveld 408576698