| Index: base/profiler/native_stack_sampler_win.cc
|
| diff --git a/base/profiler/native_stack_sampler_win.cc b/base/profiler/native_stack_sampler_win.cc
|
| index 063374f19d5b1edfd7d758d98e4047a1b8d67bd6..fc57b70a1358d862e5d31217ce788d8fc1d09103 100644
|
| --- a/base/profiler/native_stack_sampler_win.cc
|
| +++ b/base/profiler/native_stack_sampler_win.cc
|
| @@ -508,11 +508,11 @@ void NativeStackSamplerWin::CopyToSample(
|
| const std::vector<RecordedFrame>& stack,
|
| StackSamplingProfiler::Sample* sample,
|
| std::vector<StackSamplingProfiler::Module>* modules) {
|
| - sample->clear();
|
| - sample->reserve(stack.size());
|
| + sample->frames.clear();
|
| + sample->frames.reserve(stack.size());
|
|
|
| for (const RecordedFrame& frame : stack) {
|
| - sample->push_back(StackSamplingProfiler::Frame(
|
| + sample->frames.push_back(StackSamplingProfiler::Frame(
|
| reinterpret_cast<uintptr_t>(frame.instruction_pointer),
|
| GetModuleIndex(frame.module.Get(), modules)));
|
| }
|
|
|