Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Commit

Permalink
src: fix GetCpuProfiler() deprecation warning
Browse files Browse the repository at this point in the history
Refs: nodejs/node-v8#46

PR-URL: nodejs/node#19989
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
(cherry picked from commit fbe6b85)
  • Loading branch information
targos authored and hferreiro committed Jul 18, 2018
1 parent 18f874a commit ed767df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ void Environment::Start(int argc,
void Environment::StartProfilerIdleNotifier() {
uv_prepare_start(&idle_prepare_handle_, [](uv_prepare_t* handle) {
Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle);
env->isolate()->GetCpuProfiler()->SetIdle(true);
env->isolate()->SetIdle(true);
});

uv_check_start(&idle_check_handle_, [](uv_check_t* handle) {
Environment* env = ContainerOf(&Environment::idle_check_handle_, handle);
env->isolate()->GetCpuProfiler()->SetIdle(false);
env->isolate()->SetIdle(false);
});
}

Expand Down

0 comments on commit ed767df

Please sign in to comment.