Sampling heap profiler: report allocations for nodes with missing script.

Review-Url: https://codereview.chromium.org/1952753003
Cr-Commit-Position: refs/heads/master@{#36085}
This commit is contained in:
alph 2016-05-06 07:49:28 -07:00 committed by Commit bot
parent 127d6781d9
commit dae0fecfd2

View File

@ -233,10 +233,10 @@ v8::AllocationProfile::Node* SamplingHeapProfiler::TranslateAllocationNode(
line = 1 + Script::GetLineNumber(script, node->script_position_); line = 1 + Script::GetLineNumber(script, node->script_position_);
column = 1 + Script::GetColumnNumber(script, node->script_position_); column = 1 + Script::GetColumnNumber(script, node->script_position_);
} }
}
for (auto alloc : node->allocations_) { for (auto alloc : node->allocations_) {
allocations.push_back(ScaleSample(alloc.first, alloc.second)); allocations.push_back(ScaleSample(alloc.first, alloc.second));
} }
}
profile->nodes().push_back(v8::AllocationProfile::Node( profile->nodes().push_back(v8::AllocationProfile::Node(
{ToApiHandle<v8::String>( {ToApiHandle<v8::String>(