| Index: src/cpu-profiler.cc
|
| diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc
|
| index 42722191bd5a0cce0c9bdb7d8a909cbd3d30fb2a..b95b7d85968d10afe453830c790975a4c46eeffd 100644
|
| --- a/src/cpu-profiler.cc
|
| +++ b/src/cpu-profiler.cc
|
| @@ -437,6 +437,10 @@ void CpuProfiler::ResetProfiles() {
|
| }
|
|
|
| void CpuProfiler::StartProfiling(const char* title, bool record_samples) {
|
| + i::HandleScope scope(isolate_);
|
| + v8::Local<v8::Context> context = v8::Context::New(
|
| + reinterpret_cast<v8::Isolate*>(isolate_));
|
| + v8::Context::Scope contextScope(context);
|
| if (profiles_->StartProfiling(title, next_profile_uid_++, record_samples)) {
|
| StartProcessorIfNotStarted();
|
| }
|
|
|