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

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
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index 529e733eccfb25b4a8fbe580a0a2e56313718ba4..cffb023bca763ed8a40e153fea02eef7a16e5931 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;
}

Powered by Google App Engine
This is Rietveld 408576698