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

Issue 27227005: Record allocation stack traces (Closed)

Created:
7 years, 2 months ago by yurys
Modified:
7 years, 2 months ago
CC:
v8-dev, Alexandra Mikhaylova
Visibility:
Public.

Description

Record allocation stack traces This is initial implementation of allocation profiler. Whenever new object allocation is reported to the HeapProfiler and allocation tracking is on we will capture current stack trace, add it to the collection of the allocation traces (a tree) and attribute the allocated size to the top JS function on the stack. Format of serialized heap snapshot is extended to include information about recorded allocation stack traces. BUG=chromium:277984 R=hpayer@chromium.org, loislo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=17301

Patch Set 1 #

Total comments: 12

Patch Set 2 : Added a test #

Patch Set 3 : Removed debug print #

Patch Set 4 : Fixed debug build #

Patch Set 5 : Fixed debug build #

Patch Set 6 : Fix debug crash #

Patch Set 7 : Make sure f_0_3 constructor is not inlined #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : Comments addressed #

Total comments: 7

Patch Set 10 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+686 lines, -5 lines) Patch
A src/allocation-tracker.h View 1 2 3 4 5 6 7 8 9 1 chunk +138 lines, -0 lines 0 comments Download
A src/allocation-tracker.cc View 1 2 3 4 5 6 7 8 9 1 chunk +271 lines, -0 lines 0 comments Download
M src/heap-snapshot-generator.h View 6 chunks +10 lines, -3 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 3 4 5 6 7 8 9 9 chunks +160 lines, -2 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 3 4 5 6 7 8 9 3 chunks +105 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
yurys
7 years, 2 months ago (2013-10-16 14:31:45 UTC) #1
yurys
7 years, 2 months ago (2013-10-16 14:33:30 UTC) #2
loislo
https://codereview.chromium.org/27227005/diff/1/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/27227005/diff/1/src/allocation-tracker.cc#newcode192 src/allocation-tracker.cc:192: printf("script->name is not a name\n"); please remove this https://codereview.chromium.org/27227005/diff/1/src/allocation-tracker.cc#newcode195 ...
7 years, 2 months ago (2013-10-16 15:14:07 UTC) #3
yurys
https://codereview.chromium.org/27227005/diff/1/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/27227005/diff/1/src/allocation-tracker.cc#newcode192 src/allocation-tracker.cc:192: printf("script->name is not a name\n"); On 2013/10/16 15:14:08, loislo ...
7 years, 2 months ago (2013-10-17 15:27:34 UTC) #4
yurys
7 years, 2 months ago (2013-10-17 15:33:17 UTC) #5
loislo
lgtm https://codereview.chromium.org/27227005/diff/23001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/27227005/diff/23001/src/allocation-tracker.cc#newcode54 src/allocation-tracker.cc:54: AllocationTraceNode* node = children_[i]; what are you expectations ...
7 years, 2 months ago (2013-10-18 08:30:38 UTC) #6
yurys
https://codereview.chromium.org/27227005/diff/23001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/27227005/diff/23001/src/allocation-tracker.cc#newcode54 src/allocation-tracker.cc:54: AllocationTraceNode* node = children_[i]; On 2013/10/18 08:30:38, loislo wrote: ...
7 years, 2 months ago (2013-10-18 09:04:32 UTC) #7
Hannes Payer (out of office)
LGTM, minor nits. https://codereview.chromium.org/27227005/diff/63001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/27227005/diff/63001/src/allocation-tracker.cc#newcode80 src/allocation-tracker.cc:80: indent, ' '); May fit in ...
7 years, 2 months ago (2013-10-21 09:57:21 UTC) #8
yurys
https://codereview.chromium.org/27227005/diff/63001/src/allocation-tracker.cc File src/allocation-tracker.cc (right): https://codereview.chromium.org/27227005/diff/63001/src/allocation-tracker.cc#newcode80 src/allocation-tracker.cc:80: indent, ' '); On 2013/10/21 09:57:22, Hannes Payer wrote: ...
7 years, 2 months ago (2013-10-21 15:07:55 UTC) #9
yurys
7 years, 2 months ago (2013-10-21 15:22:21 UTC) #10
Message was sent while issue was closed.
Committed patchset #10 manually as r17301 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698