Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: src/isolate.cc

Issue 13457002: Isolatify CPU profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | src/log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index a1d70a51e8fcf2ef915edf66c1769f59cbf65cf6..ef59f29ca79c273a7633cd20a696e312024810a6 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1693,6 +1693,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),
@@ -1825,7 +1826,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_;
@@ -2054,7 +2057,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
« no previous file with comments | « src/isolate.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698