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

Issue 2816043006: [inspector] avoid cloning of async call chains (Closed)

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

Description

[inspector] avoid cloning of async call chains - separated V8StackTraceImpl and AsyncStackTrace, - V8Debugger owns all AsyncStackTrace and cleanup half of them when limit is reached (first created - first cleaned), - V8StackTraceImpl, AsyncStackTrace and async-task-related tables in V8Debugger have weak reference to other async stack traces. - async tasks are cleared with related async stacks. BUG=v8:6189 R=dgozman@chromium.org Review-Url: https://codereview.chromium.org/2816043006 Cr-Original-Commit-Position: refs/heads/master@{#44670} Committed: https://chromium.googlesource.com/v8/v8/+/1bca73bc832c645138bd3e0306fcaa8bb44dad04 Review-Url: https://codereview.chromium.org/2816043006 Cr-Commit-Position: refs/heads/master@{#44694} Committed: https://chromium.googlesource.com/v8/v8/+/38be4a17c198a93154b1dfa1908e955f929ca825

Patch Set 1 #

Patch Set 2 : all tests.. #

Patch Set 3 : StackTrace -> back to V8StacktraceImpl #

Total comments: 19

Patch Set 4 : addressed comments #

Patch Set 5 : better test added #

Patch Set 6 : rebased #

Total comments: 22

Patch Set 7 : added a test #

Patch Set 8 : lines and columns in stack string should be 1-based #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1001 lines, -657 lines) Patch
M src/inspector/v8-console.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/inspector/v8-debugger.h View 1 2 3 4 5 6 7 chunks +21 lines, -11 lines 0 comments Download
M src/inspector/v8-debugger.cc View 1 2 3 4 5 6 12 chunks +74 lines, -68 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 4 chunks +11 lines, -6 lines 0 comments Download
M src/inspector/v8-stack-trace-impl.h View 1 2 3 4 5 6 1 chunk +80 lines, -58 lines 0 comments Download
M src/inspector/v8-stack-trace-impl.cc View 1 2 3 4 5 6 7 4 chunks +216 lines, -207 lines 0 comments Download
D test/inspector/debugger/async-stacks-limit.js View 1 2 3 4 1 chunk +0 lines, -164 lines 0 comments Download
M test/inspector/debugger/async-stacks-limit-expected.txt View 1 2 3 4 1 chunk +0 lines, -140 lines 0 comments Download
A test/inspector/debugger/collect-old-async-call-chains.js View 1 2 3 4 1 chunk +171 lines, -0 lines 0 comments Download
A test/inspector/debugger/collect-old-async-call-chains-expected.txt View 1 2 3 4 1 chunk +211 lines, -0 lines 0 comments Download
A test/inspector/debugger/set-async-call-stack-depth.js View 1 2 3 4 5 6 1 chunk +77 lines, -0 lines 0 comments Download
A test/inspector/debugger/set-async-call-stack-depth-expected.txt View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
M test/inspector/inspector-impl.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -1 line 0 comments Download
M test/inspector/inspector-impl.cc View 1 2 3 4 5 6 7 3 chunks +37 lines, -0 lines 0 comments Download
M test/inspector/inspector-test.cc View 1 2 3 4 5 6 7 3 chunks +19 lines, -0 lines 0 comments Download
M test/inspector/protocol-test.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A test/inspector/runtime/client-console-api-message.js View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A test/inspector/runtime/client-console-api-message-expected.txt View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (29 generated)
kozy
Dmitry, please take a look. Another attempt.
3 years, 8 months ago (2017-04-17 07:11:43 UTC) #9
dgozman
Looks reasonable! While reading V8StackTraceImpl, I thought that it could make sense to extract SyncStackTrace ...
3 years, 8 months ago (2017-04-17 17:49:09 UTC) #12
kozy
All done. Please take another look. https://codereview.chromium.org/2816043006/diff/40001/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (left): https://codereview.chromium.org/2816043006/diff/40001/src/inspector/v8-debugger.cc#oldcode872 src/inspector/v8-debugger.cc:872: // Passing one ...
3 years, 8 months ago (2017-04-17 21:34:18 UTC) #15
dgozman
lgtm https://codereview.chromium.org/2816043006/diff/40001/src/inspector/v8-stack-trace-impl.h File src/inspector/v8-stack-trace-impl.h (right): https://codereview.chromium.org/2816043006/diff/40001/src/inspector/v8-stack-trace-impl.h#newcode33 src/inspector/v8-stack-trace-impl.h:33: int contextGroupId, On 2017/04/17 21:34:17, kozy wrote: > ...
3 years, 8 months ago (2017-04-17 23:03:16 UTC) #20
kozy
thanks! all done. https://codereview.chromium.org/2816043006/diff/100001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2816043006/diff/100001/src/inspector/v8-debugger-agent-impl.cc#newcode1038 src/inspector/v8-debugger-agent-impl.cc:1038: m_debugger->maxAsyncCallChainDepth() - 1); On 2017/04/17 23:03:15, ...
3 years, 8 months ago (2017-04-18 01:04:39 UTC) #23
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/2816043006/120001
3 years, 8 months ago (2017-04-18 01:41:00 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/v8/v8/+/1bca73bc832c645138bd3e0306fcaa8bb44dad04
3 years, 8 months ago (2017-04-18 01:42:44 UTC) #31
Michael Achenbach
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2825713002/ by machenbach@chromium.org. ...
3 years, 8 months ago (2017-04-18 10:17:15 UTC) #32
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/2816043006/140001
3 years, 8 months ago (2017-04-18 15:29:13 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 15:53:17 UTC) #39
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/v8/v8/+/38be4a17c198a93154b1dfa1908e955f929...

Powered by Google App Engine
This is Rietveld 408576698