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

Unified Diff: runtime/vm/profiler.cc

Issue 128653004: Use list of isolates in profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « runtime/vm/isolate.cc ('k') | runtime/vm/thread_interrupter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index 8b39ec9485b52dcf001bea953be53676d56259bb..6c6b19d5177c29befe3feab34b66ecef9e7f4277 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -50,6 +50,7 @@ void Profiler::InitOnce() {
} else if (FLAG_profile_depth > kMaximumDepth) {
FLAG_profile_depth = kMaximumDepth;
}
+ // We must always initialize the Sample, even when the profiler is disabled.
Sample::InitOnce();
if (!FLAG_profile) {
return;
@@ -57,8 +58,8 @@ void Profiler::InitOnce() {
ASSERT(!initialized_);
sample_buffer_ = new SampleBuffer();
NativeSymbolResolver::InitOnce();
- ThreadInterrupter::InitOnce();
ThreadInterrupter::SetInterruptPeriod(FLAG_profile_period);
+ ThreadInterrupter::Startup();
initialized_ = true;
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/thread_interrupter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698