| Index: src/heap-profiler.cc
|
| ===================================================================
|
| --- src/heap-profiler.cc (revision 8778)
|
| +++ src/heap-profiler.cc (working copy)
|
| @@ -34,7 +34,6 @@
|
| namespace internal {
|
|
|
|
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| HeapProfiler::HeapProfiler()
|
| : snapshots_(new HeapSnapshotsCollection()),
|
| next_snapshot_uid_(1) {
|
| @@ -52,29 +51,21 @@
|
| }
|
|
|
|
|
| -#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,4 @@
|
| }
|
|
|
|
|
| -#endif // ENABLE_LOGGING_AND_PROFILING
|
| -
|
| -
|
| } } // namespace v8::internal
|
|
|