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

Issue 2653293003: [inspector] introduced memory size limit for console message storage (Closed)

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

Description

[inspector] introduced memory size limit for console message storage Without this CL we have only limit for amount of console messages and if user are dumping a huge messages we pretty soon run out of memory. So let's introduce limit for memory consumption it would help chromium and Node.js as well. BUG=chromium:671489 R=dgozman@chomium.org,alph@chromium.org, hpayer@chromium.org, ulan@chromium.org Review-Url: https://codereview.chromium.org/2653293003 Cr-Commit-Position: refs/heads/master@{#42780} Committed: https://chromium.googlesource.com/v8/v8/+/3903817e0eead8f9812ee0e5481379190bfa3410

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed comments #

Total comments: 4

Patch Set 3 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -9 lines) Patch
M src/api.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/inspector/v8-console-message.h View 4 chunks +6 lines, -2 lines 0 comments Download
M src/inspector/v8-console-message.cc View 1 2 6 chunks +23 lines, -7 lines 0 comments Download
A test/inspector/runtime/console-messages-limits.js View 1 chunk +44 lines, -0 lines 0 comments Download
A test/inspector/runtime/console-messages-limits-expected.txt View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
kozy
Aleksey or Dmitry please take a look on inspector part. Hannes, is it fine to ...
3 years, 11 months ago (2017-01-25 23:05:22 UTC) #3
kozy
added Dmitry to the list of reviewers..
3 years, 11 months ago (2017-01-25 23:06:28 UTC) #5
alph
lgtm https://codereview.chromium.org/2653293003/diff/1/src/inspector/v8-console-message.cc File src/inspector/v8-console-message.cc (right): https://codereview.chromium.org/2653293003/diff/1/src/inspector/v8-console-message.cc#newcode474 src/inspector/v8-console-message.cc:474: while (m_estimatedSize + message->estimatedSize() > maxConsoleMessageV8Size && shouldn't ...
3 years, 11 months ago (2017-01-25 23:45:43 UTC) #6
kozy
all done. And we definitely should be more effective in storage, e.g. doesn't store message ...
3 years, 11 months ago (2017-01-26 02:41:38 UTC) #7
kozy
Ulan, please take a look on Size usage.
3 years, 11 months ago (2017-01-26 22:47:54 UTC) #16
ulan
lgtm modulo comments https://codereview.chromium.org/2653293003/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2653293003/diff/20001/src/api.cc#newcode9345 src/api.cc:9345: if (object->IsSmi()) return 4; Smi uses ...
3 years, 10 months ago (2017-01-30 10:50:25 UTC) #17
kozy
thank you! all done. https://codereview.chromium.org/2653293003/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2653293003/diff/20001/src/api.cc#newcode9345 src/api.cc:9345: if (object->IsSmi()) return 4; On ...
3 years, 10 months ago (2017-01-30 16:13:07 UTC) #18
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/2653293003/40001
3 years, 10 months ago (2017-01-30 16:29:00 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-01-30 17:06:06 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/3903817e0eead8f9812ee0e5481379190bf...

Powered by Google App Engine
This is Rietveld 408576698