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

Issue 2868493002: [inspector] use creation stack trace as parent for async call chains (Closed)

Created:
3 years, 7 months ago by kozy
Modified:
3 years, 7 months ago
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] use creation stack trace as parent for async call chains Creation stack trace points to the place where callback was actually chained, scheduled points where parent promise was resolved. For async tasks without creation stack (e.g. setTimeout) we continue to use scheduled as creation since usually they are the same. BUG=v8:6189 R=dgozman@chromium.org Review-Url: https://codereview.chromium.org/2868493002 Cr-Original-Commit-Position: refs/heads/master@{#45198} Committed: https://chromium.googlesource.com/v8/v8/+/e118462f18a862df81a04486e13dd62997cbfc5a Review-Url: https://codereview.chromium.org/2868493002 Cr-Commit-Position: refs/heads/master@{#45266} Committed: https://chromium.googlesource.com/v8/v8/+/f61facfdaf4f0fb9c7fcdee8b1425f28cc67b647

Patch Set 1 #

Total comments: 2

Patch Set 2 : ac #

Patch Set 3 : removed DCHECK for now #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -343 lines) Patch
M src/inspector/v8-debugger.cc View 1 3 chunks +13 lines, -3 lines 0 comments Download
M src/inspector/v8-stack-trace-impl.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/inspector/v8-stack-trace-impl.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M test/inspector/debugger/async-for-await-of-promise-stack.js View 6 chunks +6 lines, -6 lines 0 comments Download
M test/inspector/debugger/async-for-await-of-promise-stack-expected.txt View 1 chunk +27 lines, -26 lines 0 comments Download
M test/inspector/debugger/async-instrumentation-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/async-promise-late-then-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M test/inspector/debugger/async-stack-await-expected.txt View 1 chunk +7 lines, -8 lines 0 comments Download
M test/inspector/debugger/async-stack-created-frame.js View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/async-stack-created-frame-expected.txt View 1 chunk +24 lines, -33 lines 0 comments Download
M test/inspector/debugger/async-stack-for-promise-expected.txt View 1 chunk +37 lines, -92 lines 0 comments Download
M test/inspector/debugger/collect-old-async-call-chains-expected.txt View 8 chunks +12 lines, -12 lines 0 comments Download
M test/inspector/debugger/max-async-call-chain-depth.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/max-async-call-chain-depth-expected.txt View 2 chunks +23 lines, -42 lines 0 comments Download
M test/inspector/debugger/promise-chain-when-limit-hit.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/promise-chain-when-limit-hit-expected.txt View 6 chunks +37 lines, -100 lines 0 comments Download
M test/inspector/debugger/set-async-call-stack-depth.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/set-async-call-stack-depth-expected.txt View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
kozy
Dmitry, please take a look.
3 years, 7 months ago (2017-05-05 19:35:40 UTC) #5
dgozman
lgtm https://codereview.chromium.org/2868493002/diff/1/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (right): https://codereview.chromium.org/2868493002/diff/1/src/inspector/v8-debugger.cc#newcode942 src/inspector/v8-debugger.cc:942: m_currentAsyncParent.back()->description()); Also clear m_currentAsyncParent.back().
3 years, 7 months ago (2017-05-05 23:24:31 UTC) #7
kozy
all done. https://codereview.chromium.org/2868493002/diff/1/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (right): https://codereview.chromium.org/2868493002/diff/1/src/inspector/v8-debugger.cc#newcode942 src/inspector/v8-debugger.cc:942: m_currentAsyncParent.back()->description()); On 2017/05/05 23:24:31, dgozman wrote: > ...
3 years, 7 months ago (2017-05-09 06:29:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2868493002/20001
3 years, 7 months ago (2017-05-09 14:41:38 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/e118462f18a862df81a04486e13dd62997cbfc5a
3 years, 7 months ago (2017-05-09 14:43:22 UTC) #18
alex clarke (OOO till 29th)
This patch is causing lots of test failures on the waterfall, please revert: E.g. https://storage.googleapis.com/chromium-layout-test-archives/linux_chromium_rel_ng/450443/layout-test-results/http/tests/inspector/debugger/fetch-breakpoints-crash-log.txt
3 years, 7 months ago (2017-05-10 20:28:06 UTC) #20
kozy
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2868423004/ by kozyatinskiy@chromium.org. ...
3 years, 7 months ago (2017-05-10 20:43:17 UTC) #21
kozy
On 2017/05/10 20:28:06, alex clarke wrote: > This patch is causing lots of test failures ...
3 years, 7 months ago (2017-05-10 20:46:38 UTC) #22
kozy
Since blink has own instrumentation for blink wrapper around promises we can't have DCHECK here ...
3 years, 7 months ago (2017-05-10 21:43:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2868493002/40001
3 years, 7 months ago (2017-05-11 18:48:32 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 19:21:34 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/f61facfdaf4f0fb9c7fcdee8b1425f28cc6...

Powered by Google App Engine
This is Rietveld 408576698