Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index f8698b31005ce1953c9dd2bb2340e7f5354652e1..397bf40f5fe51186591cae1e3236c6698ef070c3 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -429,8 +429,8 @@ void CpuProfiler::StartProcessorIfNotStarted() { |
if (processor_ == NULL) { |
Logger* logger = isolate_->logger(); |
// Disable logging when using the new implementation. |
- saved_logging_nesting_ = logger->logging_nesting_; |
- logger->logging_nesting_ = 0; |
+ saved_is_logging_ = logger->is_logging_; |
+ logger->is_logging_ = false; |
generator_ = new ProfileGenerator(profiles_); |
Sampler* sampler = logger->sampler(); |
processor_ = new ProfilerEventsProcessor( |
@@ -499,7 +499,7 @@ void CpuProfiler::StopProcessor() { |
sampler->Stop(); |
need_to_stop_sampler_ = false; |
} |
- logger->logging_nesting_ = saved_logging_nesting_; |
+ logger->is_logging_ = saved_is_logging_; |
} |