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

Issue 6626043: Add an interface for an embedder to provide information about native (Closed)

Created:
9 years, 9 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
CC:
v8-dev, gregsimon1
Visibility:
Public.

Description

Add an interface for an embedder to provide information about native objects retained by object groups and global handles. This information is then used during heap snapshot generation to provide a more complete memory picture. This patch will be needed to fix https://bugs.webkit.org/show_bug.cgi?id=53659. Committed: http://code.google.com/p/v8/source/detail?r=7125

Patch Set 1 #

Total comments: 38

Patch Set 2 : Comments addressed #

Patch Set 3 : Fix GetCopy #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+776 lines, -122 lines) Patch
M include/v8.h View 1 5 chunks +18 lines, -1 line 0 comments Download
M include/v8-profiler.h View 1 3 chunks +95 lines, -8 lines 0 comments Download
M src/api.cc View 3 chunks +16 lines, -2 lines 0 comments Download
M src/global-handles.h View 1 4 chunks +16 lines, -3 lines 0 comments Download
M src/global-handles.cc View 1 7 chunks +31 lines, -3 lines 0 comments Download
M src/heap.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/heap-profiler.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/heap-profiler.cc View 1 4 chunks +25 lines, -3 lines 2 comments Download
M src/objects.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M src/objects-inl.h View 1 chunk +16 lines, -0 lines 0 comments Download
M src/profile-generator.h View 1 14 chunks +72 lines, -15 lines 2 comments Download
M src/profile-generator.cc View 1 2 25 chunks +324 lines, -67 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 1 chunk +137 lines, -0 lines 0 comments Download
M test/cctest/test-mark-compact.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mnaganov (inactive)
Mads, can you please look at the V8 API part. We don't want to bother ...
9 years, 9 months ago (2011-03-05 18:42:12 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/6626043/diff/1/test/cctest/test-heap-profiler.cc File test/cctest/test-heap-profiler.cc (right): http://codereview.chromium.org/6626043/diff/1/test/cctest/test-heap-profiler.cc#newcode1322 test/cctest/test-heap-profiler.cc:1322: Missing empty line.
9 years, 9 months ago (2011-03-09 11:38:47 UTC) #2
Vitaly Repeshko
http://codereview.chromium.org/6626043/diff/1/include/v8-profiler.h File include/v8-profiler.h (right): http://codereview.chromium.org/6626043/diff/1/include/v8-profiler.h#newcode403 include/v8-profiler.h:403: * the given JavaScript wrapper object. We should document ...
9 years, 9 months ago (2011-03-09 14:15:49 UTC) #3
mnaganov (inactive)
http://codereview.chromium.org/6626043/diff/1/include/v8-profiler.h File include/v8-profiler.h (right): http://codereview.chromium.org/6626043/diff/1/include/v8-profiler.h#newcode403 include/v8-profiler.h:403: * the given JavaScript wrapper object. On 2011/03/09 14:15:49, ...
9 years, 9 months ago (2011-03-09 15:26:32 UTC) #4
Vitaly Repeshko
LGTM http://codereview.chromium.org/6626043/diff/3002/src/heap-profiler.cc File src/heap-profiler.cc (right): http://codereview.chromium.org/6626043/diff/3002/src/heap-profiler.cc#newcode368 src/heap-profiler.cc:368: uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback) { Assert class_id is ...
9 years, 9 months ago (2011-03-09 19:10:08 UTC) #5
mnaganov (inactive)
9 years, 9 months ago (2011-03-10 12:23:35 UTC) #6
Committed separately as http://code.google.com/p/v8/source/detail?r=7126

http://codereview.chromium.org/6626043/diff/3002/src/heap-profiler.cc
File src/heap-profiler.cc (right):

http://codereview.chromium.org/6626043/diff/3002/src/heap-profiler.cc#newcode368
src/heap-profiler.cc:368: uint16_t class_id,
v8::HeapProfiler::WrapperInfoCallback callback) {
On 2011/03/09 19:10:08, Vitaly Repeshko wrote:
> Assert class_id is not kNoClassId.

Done.

http://codereview.chromium.org/6626043/diff/3002/src/profile-generator.h
File src/profile-generator.h (right):

http://codereview.chromium.org/6626043/diff/3002/src/profile-generator.h#newc...
src/profile-generator.h:683: HeapEntry* dom_subtrees_root() { return
dom_subtrees_root_entry_; }
On 2011/03/09 19:10:08, Vitaly Repeshko wrote:
> "dom" -> "native"?

Done.

Powered by Google App Engine
This is Rietveld 408576698