Skip to content

Commit

Permalink
chore: remove SetIdle() function from CpuProfiler (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanmar511 authored and aalexand committed Aug 6, 2018
1 parent 4de7ef6 commit c6a1c59
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bindings/time-profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,13 @@ NAN_METHOD(SetSamplingInterval) {
cpuProfiler->SetSamplingInterval(us);
}

NAN_METHOD(SetIdle) {
bool is_idle = info[0].As<Boolean>()->BooleanValue();
cpuProfiler->SetIdle(is_idle);
}

NAN_MODULE_INIT(InitAll) {
Nan::Set(target, Nan::New("startProfiling").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(StartProfiling)).ToLocalChecked());
Nan::Set(target, Nan::New("stopProfiling").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(StopProfiling)).ToLocalChecked());
Nan::Set(target, Nan::New("setSamplingInterval").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(SetSamplingInterval)).ToLocalChecked());
Nan::Set(target, Nan::New("setIdle").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(SetIdle)).ToLocalChecked());
}

NODE_MODULE(time_profiler, InitAll);

0 comments on commit c6a1c59

Please sign in to comment.