| 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;
|
| }
|
|
|
|
|