DescriptionRecord 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.
This patch is r17301 plus a fix for the test crash in debug mode. The test crashed because we were traversing stack trace when just allocated object wasn't completely configured, in particular the map pointer was incorrect. Invalid Map pointer broke heap iteration required to find Code object for a given pc during stack traversal. The solution is to insert free space filler in the newly allocated block just before collecting stack trace.
BUG=chromium:277984, v8:2949
R=hpayer@chromium.org, loislo@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=17365
Patch Set 1 #Patch Set 2 : Fixed test crash in debug mode #Patch Set 3 : Reverted changes to features.gypi #Patch Set 4 : Rebase #Patch Set 5 : Reverted crash fix #Patch Set 6 : Mark allocated block as FreeSpace before iterating call stack #
Messages
Total messages: 13 (0 generated)
|