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

Issue 3020002: Heap profiler: implement diffing of snapshots. (Closed)

Created:
10 years, 5 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
CC:
v8-dev, Søren Thygesen Gjesse, Vitaly Repeshko
Visibility:
Public.

Description

Heap profiler: implement diffing of snapshots. To trace objects between snapshots, an external map of object tags is maintained. After the first heap snapshot has been taken, the map is updated by reporting object moves from the GC. If no snapshots were taken, there is no overhead (except for flag checking). I considered graph comparison algorithms that doesn't require using object tags, but they are all of a high computational complexity, and will still fail to detect object moves properly, even for trivial cases, so using tags looks like unavoidable. Committed: http://code.google.com/p/v8/source/detail?r=5078

Patch Set 1 #

Total comments: 24

Patch Set 2 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+609 lines, -82 lines) Patch
M include/v8-profiler.h View 1 3 chunks +20 lines, -1 line 0 comments Download
M src/api.cc View 1 4 chunks +35 lines, -1 line 0 comments Download
M src/checks.h View 1 chunk +22 lines, -0 lines 0 comments Download
M src/heap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap-profiler.h View 2 chunks +15 lines, -1 line 0 comments Download
M src/heap-profiler.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M src/mark-compact.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M src/profile-generator.h View 1 15 chunks +122 lines, -6 lines 0 comments Download
M src/profile-generator.cc View 1 22 chunks +242 lines, -52 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 12 chunks +141 lines, -21 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mnaganov (inactive)
10 years, 5 months ago (2010-07-15 09:10:04 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/3020002/diff/1/2 File include/v8-profiler.h (right): http://codereview.chromium.org/3020002/diff/1/2#newcode302 include/v8-profiler.h:302: const HeapGraphNode* GetAdditionsHead() const; Using the names GetAdditionsRootNode ...
10 years, 5 months ago (2010-07-15 10:55:30 UTC) #2
mnaganov (inactive)
Thanks for your time! http://codereview.chromium.org/3020002/diff/1/2 File include/v8-profiler.h (right): http://codereview.chromium.org/3020002/diff/1/2#newcode302 include/v8-profiler.h:302: const HeapGraphNode* GetAdditionsHead() const; On ...
10 years, 5 months ago (2010-07-15 13:19:48 UTC) #3
Mads Ager (chromium)
10 years, 5 months ago (2010-07-15 13:25:42 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698