| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 632ecdc50a32b569ba3224c9428a165ef10deccb..5d4bc89b998a84b77c18f4579f8ba0f95425fd81 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1678,6 +1678,7 @@ Isolate::Isolate()
|
| date_cache_(NULL),
|
| code_stub_interface_descriptors_(NULL),
|
| context_exit_happened_(false),
|
| + cpu_profiler_(NULL),
|
| deferred_handles_head_(NULL),
|
| optimizing_compiler_thread_(this),
|
| marking_thread_(NULL),
|
| @@ -1810,7 +1811,9 @@ void Isolate::Deinit() {
|
| PreallocatedMemoryThreadStop();
|
|
|
| HeapProfiler::TearDown();
|
| - CpuProfiler::TearDown();
|
| + delete cpu_profiler_;
|
| + cpu_profiler_ = NULL;
|
| +
|
| if (runtime_profiler_ != NULL) {
|
| runtime_profiler_->TearDown();
|
| delete runtime_profiler_;
|
| @@ -2039,7 +2042,7 @@ bool Isolate::Init(Deserializer* des) {
|
| // Enable logging before setting up the heap
|
| logger_->SetUp();
|
|
|
| - CpuProfiler::SetUp();
|
| + cpu_profiler_ = new CpuProfiler(this);
|
| HeapProfiler::SetUp();
|
|
|
| // Initialize other runtime facilities
|
|
|