Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 8e41726036b3c65d87550463173163ec9cda592a..040109535b247f2cf660b7f3e5646fef23afed89 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -22,7 +22,6 @@ |
#include "src/macro-assembler.h" |
#include "src/perf-jit.h" |
#include "src/profiler/cpu-profiler-inl.h" |
-#include "src/profiler/profiler-listener.h" |
#include "src/runtime-profiler.h" |
#include "src/string-stream.h" |
#include "src/vm-state-inl.h" |
@@ -1790,8 +1789,6 @@ |
profiler_->Engage(); |
} |
- profiler_listener_.reset(); |
- |
if (is_logging_) { |
addCodeEventListener(this); |
} |
@@ -1819,18 +1816,6 @@ |
} |
} |
-void Logger::SetUpProfilerListener() { |
- if (!is_initialized_) return; |
- if (profiler_listener_.get() == nullptr) { |
- profiler_listener_.reset(new ProfilerListener(isolate_)); |
- } |
- addCodeEventListener(profiler_listener_.get()); |
-} |
- |
-void Logger::TearDownProfilerListener() { |
- if (profiler_listener_->HasObservers()) return; |
- removeCodeEventListener(profiler_listener_.get()); |
-} |
sampler::Sampler* Logger::sampler() { |
return ticker_; |
@@ -1875,10 +1860,6 @@ |
jit_logger_ = NULL; |
} |
- if (profiler_listener_.get() != nullptr) { |
- removeCodeEventListener(profiler_listener_.get()); |
- } |
- |
return log_->Close(); |
} |