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

Issue 177983003: [Heap profiler] Add construction stack trace to heap object (Closed)

Created:
6 years, 9 months ago by yurys
Modified:
6 years, 9 months ago
CC:
v8-dev
Visibility:
Public.

Description

AllocationTracker now maintains a map from address range to stack trace that allocated the range. When snapshot is generated the map is used to find construction stack trace for an object using its address. BUG=chromium:277984 LOG=Y R=alph@chromium.org, mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=19728

Patch Set 1 #

Patch Set 2 : Added trace node id to node #

Total comments: 15

Patch Set 3 : Use hex for addresses in the test #

Patch Set 4 : Use range end as key in the map #

Total comments: 2

Patch Set 5 : Renase #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -20 lines) Patch
M src/allocation-tracker.h View 1 2 3 4 chunks +28 lines, -0 lines 0 comments Download
M src/allocation-tracker.cc View 1 2 3 2 chunks +74 lines, -0 lines 0 comments Download
M src/heap-profiler.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/heap-snapshot-generator.h View 1 5 chunks +9 lines, -4 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 3 4 14 chunks +32 lines, -15 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yurys
6 years, 9 months ago (2014-03-06 13:38:01 UTC) #1
alph
lgtm https://codereview.chromium.org/177983003/diff/20001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/177983003/diff/20001/src/allocation-tracker.cc#newcode148 src/allocation-tracker.cc:148: ranges_.insert(RangeMap::value_type(start, new_range)); I have a feeling that using ...
6 years, 9 months ago (2014-03-06 14:43:18 UTC) #2
yurys
ptal https://codereview.chromium.org/177983003/diff/20001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/177983003/diff/20001/src/allocation-tracker.cc#newcode148 src/allocation-tracker.cc:148: ranges_.insert(RangeMap::value_type(start, new_range)); On 2014/03/06 14:43:18, alph wrote: > ...
6 years, 9 months ago (2014-03-06 15:38:49 UTC) #3
yurys
@mstarzinger: please do OWNERS review
6 years, 9 months ago (2014-03-06 15:46:02 UTC) #4
alph
https://codereview.chromium.org/177983003/diff/60001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/177983003/diff/60001/src/allocation-tracker.cc#newcode195 src/allocation-tracker.cc:195: do { Could you please rewrite do-while to something ...
6 years, 9 months ago (2014-03-06 16:11:00 UTC) #5
yurys
https://codereview.chromium.org/177983003/diff/60001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/177983003/diff/60001/src/allocation-tracker.cc#newcode195 src/allocation-tracker.cc:195: do { On 2014/03/06 16:11:01, alph wrote: > Could ...
6 years, 9 months ago (2014-03-06 16:25:36 UTC) #6
alph
lgtm
6 years, 9 months ago (2014-03-06 16:26:14 UTC) #7
Michael Starzinger
LGTM.
6 years, 9 months ago (2014-03-07 09:15:15 UTC) #8
yurys
6 years, 9 months ago (2014-03-07 16:13:32 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 manually as r19728 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698