Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index 8b10e8188cbbe39c261bbe88260a155059b12d67..bb480fc345bb0b5191620d0753c0431a035ca8d5 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -29,8 +29,6 @@ |
#include "cpu-profiler-inl.h" |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
- |
#include "frames-inl.h" |
#include "hashmap.h" |
#include "log-inl.h" |
@@ -574,31 +572,21 @@ void CpuProfiler::StopProcessor() { |
logger->logging_nesting_ = saved_logging_nesting_; |
} |
-} } // namespace v8::internal |
- |
-#endif // ENABLE_LOGGING_AND_PROFILING |
- |
-namespace v8 { |
-namespace internal { |
void CpuProfiler::Setup() { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
Isolate* isolate = Isolate::Current(); |
if (isolate->cpu_profiler() == NULL) { |
isolate->set_cpu_profiler(new CpuProfiler()); |
} |
-#endif |
} |
void CpuProfiler::TearDown() { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
Isolate* isolate = Isolate::Current(); |
if (isolate->cpu_profiler() != NULL) { |
delete isolate->cpu_profiler(); |
} |
isolate->set_cpu_profiler(NULL); |
-#endif |
} |
} } // namespace v8::internal |