| Index: src/cpu-profiler.cc
|
| ===================================================================
|
| --- src/cpu-profiler.cc (revision 8778)
|
| +++ src/cpu-profiler.cc (working copy)
|
| @@ -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 @@
|
| 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
|
|
|