Skip to content

Commit 686bced

Browse files
targosnodejs-ci
authored andcommitted
src: fix GetCpuProfiler() deprecation warning
Refs: #46
1 parent d7d707d commit 686bced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/env.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ void Environment::CleanupHandles() {
248248
void Environment::StartProfilerIdleNotifier() {
249249
uv_prepare_start(&idle_prepare_handle_, [](uv_prepare_t* handle) {
250250
Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle);
251-
env->isolate()->GetCpuProfiler()->SetIdle(true);
251+
env->isolate()->SetIdle(true);
252252
});
253253

254254
uv_check_start(&idle_check_handle_, [](uv_check_t* handle) {
255255
Environment* env = ContainerOf(&Environment::idle_check_handle_, handle);
256-
env->isolate()->GetCpuProfiler()->SetIdle(false);
256+
env->isolate()->SetIdle(false);
257257
});
258258
}
259259

0 commit comments

Comments
 (0)