| Index: src/profiler/cpu-profiler.cc
|
| diff --git a/src/profiler/cpu-profiler.cc b/src/profiler/cpu-profiler.cc
|
| index dbd0434b0aa4852d8863651b8ad647175996a268..091be94f062a62e88f3d7993c66ae9d16b2754ac 100644
|
| --- a/src/profiler/cpu-profiler.cc
|
| +++ b/src/profiler/cpu-profiler.cc
|
| @@ -570,6 +570,7 @@ void CpuProfiler::StartProcessorIfNotStarted() {
|
| processor_ = new ProfilerEventsProcessor(
|
| generator_, sampler, sampling_interval_);
|
| is_profiling_ = true;
|
| + isolate_->set_profiling(true);
|
| // Enumerate stuff we already have in the heap.
|
| DCHECK(isolate_->heap()->HasBeenSetUp());
|
| if (!FLAG_prof_browser_mode) {
|
| @@ -615,6 +616,7 @@ void CpuProfiler::StopProcessor() {
|
| sampler::Sampler* sampler =
|
| reinterpret_cast<sampler::Sampler*>(logger->ticker_);
|
| is_profiling_ = false;
|
| + isolate_->set_profiling(false);
|
| processor_->StopSynchronously();
|
| delete processor_;
|
| delete generator_;
|
|
|