| Index: src/profiler/sampler.cc
|
| diff --git a/src/profiler/sampler.cc b/src/profiler/sampler.cc
|
| index dc4c4c4f06d49e4c4758121ad9449b3c2076153d..1add4e71fdab35f33593dcf90e4fda1bd12f935e 100644
|
| --- a/src/profiler/sampler.cc
|
| +++ b/src/profiler/sampler.cc
|
| @@ -657,10 +657,12 @@ SamplerThread* SamplerThread::instance_ = NULL;
|
| //
|
| DISABLE_ASAN void TickSample::Init(Isolate* isolate,
|
| const v8::RegisterState& regs,
|
| - RecordCEntryFrame record_c_entry_frame) {
|
| + RecordCEntryFrame record_c_entry_frame,
|
| + bool update_stats) {
|
| timestamp = base::TimeTicks::HighResolutionNow();
|
| pc = reinterpret_cast<Address>(regs.pc);
|
| state = isolate->current_vm_state();
|
| + this->update_stats = update_stats;
|
|
|
| // Avoid collecting traces while doing GC.
|
| if (state == GC) return;
|
| @@ -796,7 +798,7 @@ void Sampler::SampleStack(const v8::RegisterState& state) {
|
| TickSample* sample = isolate_->cpu_profiler()->StartTickSample();
|
| TickSample sample_obj;
|
| if (sample == NULL) sample = &sample_obj;
|
| - sample->Init(isolate_, state, TickSample::kIncludeCEntryFrame);
|
| + sample->Init(isolate_, state, TickSample::kIncludeCEntryFrame, true);
|
| if (is_counting_samples_) {
|
| if (sample->state == JS || sample->state == EXTERNAL) {
|
| ++js_and_external_sample_count_;
|
|
|