We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6164b commit 8027884Copy full SHA for 8027884
src/env.cc
@@ -241,12 +241,12 @@ void Environment::CleanupHandles() {
241
void Environment::StartProfilerIdleNotifier() {
242
uv_prepare_start(&idle_prepare_handle_, [](uv_prepare_t* handle) {
243
Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle);
244
- env->isolate_data()->GetCpuProfiler()->SetIdle(true);
+ env->isolate()->SetIdle(true);
245
});
246
247
uv_check_start(&idle_check_handle_, [](uv_check_t* handle) {
248
Environment* env = ContainerOf(&Environment::idle_check_handle_, handle);
249
- env->isolate_data()->GetCpuProfiler()->SetIdle(false);
+ env->isolate()->SetIdle(false);
250
251
}
252
0 commit comments