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

Issue 6596073: Refactor heap profiler's code to make possible including (Closed)

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

Description

Refactor heap profiler's code to make possible including into heap snapshots non-HeapObjects. This is needed as a preparation for adding DOM subtrees tracking. BUG=none TEST=none Committed: http://code.google.com/p/v8/source/detail?r=7004

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -482 lines) Patch
M src/heap-profiler.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/heap-profiler.cc View 8 chunks +27 lines, -18 lines 0 comments Download
M src/profile-generator.h View 7 chunks +123 lines, -63 lines 6 comments Download
M src/profile-generator.cc View 25 chunks +433 lines, -372 lines 0 comments Download
M src/profile-generator-inl.h View 1 chunk +0 lines, -28 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
mnaganov (inactive)
9 years, 9 months ago (2011-03-01 14:27:09 UTC) #1
Vitaly Repeshko
LGTM with comments. http://codereview.chromium.org/6596073/diff/1/src/profile-generator.h File src/profile-generator.h (right): http://codereview.chromium.org/6596073/diff/1/src/profile-generator.h#newcode884 src/profile-generator.h:884: class HeapEntriesMap { Consider refactoring it ...
9 years, 9 months ago (2011-03-01 16:55:51 UTC) #2
mnaganov (inactive)
9 years, 9 months ago (2011-03-01 17:35:40 UTC) #3
Thank you!

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

http://codereview.chromium.org/6596073/diff/1/src/profile-generator.h#newcode884
src/profile-generator.h:884: class HeapEntriesMap {
On 2011/03/01 16:55:51, Vitaly wrote:
> Consider refactoring it into a simple HeapThing->EntryInfo map and a wrapper
> that does things like Pair on top of it.

Thanks, but let me postpone it.

http://codereview.chromium.org/6596073/diff/1/src/profile-generator.h#newcode894
src/profile-generator.h:894: void UpdateEntries();
On 2011/03/01 16:55:51, Vitaly wrote:
> The name is confusing. It's supposed to be called only once (if I got it
right)
> to actually create the entries.

Renamed to AllocateEntries -- this should meet your expectation.

http://codereview.chromium.org/6596073/diff/1/src/profile-generator.h#newcode994
src/profile-generator.h:994: HeapEntry* AllocateEntry(
On 2011/03/01 16:55:51, Vitaly wrote:
> It seems weird to have both AllocateEntry and AddEntry in the public
interface.
> The latter should be hidden. Also please mark the function as virtual to make
it
> clearer it's an interface implementation.

Marked AllocateEntry as virtual.
Also, I made private as many functions of V8HeapExplorer as possible.

Powered by Google App Engine
This is Rietveld 408576698