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

Issue 10353010: Split nodes and edges into separate arrays in heap profiler. (Closed)

Created:
8 years, 7 months ago by alexeif
Modified:
8 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Split nodes and edges into separate arrays in heap profiler. This allowed the following changes: - heap profiler now makes one pass less over the heap. - HeapEntriesMap does not allocate EntryInfo per each entry. - there's no need for an extra pass to set indexes before serialization. As a result snapshot taking time has reduced up to 2x times. Committed: https://code.google.com/p/v8/source/detail?r=11531

Patch Set 1 #

Total comments: 34

Patch Set 2 : Addressing comments. #

Total comments: 8

Patch Set 3 : Addressing comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -781 lines) Patch
M src/api.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M src/list.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/list-inl.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/profile-generator.h View 1 2 15 chunks +115 lines, -188 lines 0 comments Download
M src/profile-generator.cc View 1 2 68 chunks +313 lines, -585 lines 0 comments Download
M src/profile-generator-inl.h View 1 1 chunk +45 lines, -2 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M test/cctest/test-list.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
alexeif
8 years, 7 months ago (2012-05-03 12:53:28 UTC) #1
mnaganov (inactive)
I like the simplification of the code and especially the speed boost! https://chromiumcodereview.appspot.com/10353010/diff/1/src/profile-generator-inl.h File src/profile-generator-inl.h ...
8 years, 7 months ago (2012-05-03 15:44:31 UTC) #2
alexeif
Thanks for the review! Please take a look. https://chromiumcodereview.appspot.com/10353010/diff/1/src/profile-generator-inl.h File src/profile-generator-inl.h (right): https://chromiumcodereview.appspot.com/10353010/diff/1/src/profile-generator-inl.h#newcode109 src/profile-generator-inl.h:109: return ...
8 years, 7 months ago (2012-05-07 11:04:35 UTC) #3
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10353010/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10353010/diff/1/src/profile-generator.cc#newcode1161 src/profile-generator.cc:1161: CHECK(root_entry_ == 0); On 2012/05/07 11:04:35, alexeif wrote: > ...
8 years, 7 months ago (2012-05-08 12:05:20 UTC) #4
yurys
https://chromiumcodereview.appspot.com/10353010/diff/7001/src/profile-generator.h File src/profile-generator.h (right): https://chromiumcodereview.appspot.com/10353010/diff/7001/src/profile-generator.h#newcode657 src/profile-generator.h:657: int root_entry_; I'd rename these fields from *_entry_ to ...
8 years, 7 months ago (2012-05-08 14:55:59 UTC) #5
alexeif
https://chromiumcodereview.appspot.com/10353010/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10353010/diff/1/src/profile-generator.cc#newcode1161 src/profile-generator.cc:1161: CHECK(root_entry_ == 0); On 2012/05/08 12:05:20, Mikhail Naganov (Chromium) ...
8 years, 7 months ago (2012-05-09 12:38:06 UTC) #6
mnaganov (inactive)
8 years, 7 months ago (2012-05-09 14:10:00 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698