| Index: src/profiler/sampling-heap-profiler.cc
|
| diff --git a/src/profiler/sampling-heap-profiler.cc b/src/profiler/sampling-heap-profiler.cc
|
| index 4127858123af5400b0c5415214d1c62c88291898..ddb93c30b44b3fe1684b34f2a6c18058f6765f5e 100644
|
| --- a/src/profiler/sampling-heap-profiler.cc
|
| +++ b/src/profiler/sampling-heap-profiler.cc
|
| @@ -182,6 +182,7 @@ v8::AllocationProfile::Node* SamplingHeapProfiler::TranslateAllocationNode(
|
| int line = v8::AllocationProfile::kNoLineNumberInfo;
|
| int column = v8::AllocationProfile::kNoColumnNumberInfo;
|
| std::vector<v8::AllocationProfile::Allocation> allocations;
|
| + allocations.reserve(node->allocations_.size());
|
| if (node->script_id_ != v8::UnboundScript::kNoScriptId) {
|
| // Cannot use std::map<T>::at because it is not available on android.
|
| auto non_const_scripts = const_cast<std::map<int, Script*>&>(scripts);
|
|
|