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

Unified Diff: src/cpu-profiler.cc

Issue 23115005: Use signals for cpu profiling on Mac OS X (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years, 4 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 | « no previous file | src/sampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cpu-profiler.cc
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc
index 47b0de35c4d190fc3a5d1d76b5265a892e65dee6..f8698b31005ce1953c9dd2bb2340e7f5354652e1 100644
--- a/src/cpu-profiler.cc
+++ b/src/cpu-profiler.cc
@@ -436,7 +436,6 @@ void CpuProfiler::StartProcessorIfNotStarted() {
processor_ = new ProfilerEventsProcessor(
generator_, sampler, FLAG_cpu_profiler_sampling_interval);
is_profiling_ = true;
- processor_->StartSynchronously();
// Enumerate stuff we already have in the heap.
ASSERT(isolate_->heap()->HasBeenSetUp());
if (!FLAG_prof_browser_mode) {
@@ -454,6 +453,7 @@ void CpuProfiler::StartProcessorIfNotStarted() {
sampler->Start();
need_to_stop_sampler_ = true;
}
+ processor_->StartSynchronously();
}
}
« no previous file with comments | « no previous file | src/sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698