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

Issue 2825903002: [inspector] deduplicate stack frames (Closed)

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

Description

[inspector] deduplicate stack frames Since we already have cache on V8 side we can introduce caching on inspector side. It will decrease memory consumption and reduce time which we spend for collecting stacks. See [1] for details. [1] https://docs.google.com/a/google.com/document/d/13H1Pn6dekcwqlaYP26CfyyYGuL-U9LtUPWmt3TIpOag/edit?usp=sharing BUG=v8:6189 R=dgozman@chromium.org,yangguo@chromium.org Review-Url: https://codereview.chromium.org/2825903002 Cr-Commit-Position: refs/heads/master@{#44753} Committed: https://chromium.googlesource.com/v8/v8/+/fa1de6145fc2220de1babf4b17652f8060f8af39

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : cleanup cache after stack trace collected #

Total comments: 8

Patch Set 4 : addressed comments #

Total comments: 8

Patch Set 5 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -66 lines) Patch
M src/api.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/debug/debug-interface.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger.cc View 1 2 3 4 3 chunks +25 lines, -0 lines 0 comments Download
M src/inspector/v8-stack-trace-impl.h View 1 2 3 4 3 chunks +27 lines, -26 lines 0 comments Download
M src/inspector/v8-stack-trace-impl.cc View 1 2 3 4 12 chunks +32 lines, -39 lines 0 comments Download
M src/isolate.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/isolate.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (6 generated)
kozy
Dmitry and Yang, please take a look. Link to memory measurements and capturing time is ...
3 years, 8 months ago (2017-04-19 17:17:37 UTC) #3
dgozman
https://codereview.chromium.org/2825903002/diff/40001/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (right): https://codereview.chromium.org/2825903002/diff/40001/src/inspector/v8-debugger.cc#newcode977 src/inspector/v8-debugger.cc:977: m_asyncTaskCreationStacks.clear(); Let's cleanup frames cache here as well. https://codereview.chromium.org/2825903002/diff/40001/src/inspector/v8-stack-trace-impl.cc ...
3 years, 8 months ago (2017-04-19 20:29:05 UTC) #4
kozy
all done, please take another look. https://codereview.chromium.org/2825903002/diff/40001/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (right): https://codereview.chromium.org/2825903002/diff/40001/src/inspector/v8-debugger.cc#newcode977 src/inspector/v8-debugger.cc:977: m_asyncTaskCreationStacks.clear(); On 2017/04/19 ...
3 years, 8 months ago (2017-04-20 00:06:49 UTC) #5
Yang
On 2017/04/20 00:06:49, kozy wrote: > all done, please take another look. > > https://codereview.chromium.org/2825903002/diff/40001/src/inspector/v8-debugger.cc ...
3 years, 8 months ago (2017-04-20 13:20:17 UTC) #6
dgozman
lgtm https://codereview.chromium.org/2825903002/diff/60001/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (right): https://codereview.chromium.org/2825903002/diff/60001/src/inspector/v8-debugger.cc#newcode1059 src/inspector/v8-debugger.cc:1059: if (m_maxAsyncCallStackDepth) { Choose one... https://codereview.chromium.org/2825903002/diff/60001/src/inspector/v8-debugger.cc#newcode1063 src/inspector/v8-debugger.cc:1063: if ...
3 years, 8 months ago (2017-04-20 16:38:22 UTC) #7
kozy
all done, thanks https://codereview.chromium.org/2825903002/diff/60001/src/inspector/v8-debugger.cc File src/inspector/v8-debugger.cc (right): https://codereview.chromium.org/2825903002/diff/60001/src/inspector/v8-debugger.cc#newcode1059 src/inspector/v8-debugger.cc:1059: if (m_maxAsyncCallStackDepth) { On 2017/04/20 16:38:21, ...
3 years, 8 months ago (2017-04-20 17:05:38 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/2825903002/80001
3 years, 8 months ago (2017-04-20 17:05:50 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 17:33:11 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/fa1de6145fc2220de1babf4b17652f8060f...

Powered by Google App Engine
This is Rietveld 408576698