Index: src/heap-profiler.cc |
diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc |
index fb1ea8a641e926bf3e108cf715366e46979586bb..7e613e91733158d36cf554779e8f3f1cbe0dda2d 100644 |
--- a/src/heap-profiler.cc |
+++ b/src/heap-profiler.cc |
@@ -34,7 +34,6 @@ namespace v8 { |
namespace internal { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
HeapProfiler::HeapProfiler() |
: snapshots_(new HeapSnapshotsCollection()), |
next_snapshot_uid_(1) { |
@@ -52,29 +51,21 @@ void HeapProfiler::ResetSnapshots() { |
} |
-#endif // ENABLE_LOGGING_AND_PROFILING |
- |
void HeapProfiler::Setup() { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
Isolate* isolate = Isolate::Current(); |
if (isolate->heap_profiler() == NULL) { |
isolate->set_heap_profiler(new HeapProfiler()); |
} |
-#endif |
} |
void HeapProfiler::TearDown() { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
Isolate* isolate = Isolate::Current(); |
delete isolate->heap_profiler(); |
isolate->set_heap_profiler(NULL); |
-#endif |
} |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
- |
HeapSnapshot* HeapProfiler::TakeSnapshot(const char* name, |
int type, |
v8::ActivityControl* control) { |
@@ -179,7 +170,5 @@ void HeapProfiler::ObjectMoveEvent(Address from, Address to) { |
snapshots_->ObjectMoveEvent(from, to); |
} |
-#endif // ENABLE_LOGGING_AND_PROFILING |
- |
} } // namespace v8::internal |