File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -275,14 +275,10 @@ NAN_METHOD(StartProfiling) {
275
275
// profile is collected, there cannot be multiple CPU profiling requests
276
276
// inflight in parallel.
277
277
if (cpuProfiler) {
278
- return Nan::ThrowError (" CPU profiler is already started." );
278
+ return Nan::ThrowError (" CPU profiler is already started or has already been stopped and destroyed ." );
279
279
}
280
280
cpuProfiler = CpuProfiler::New (v8::Isolate::GetCurrent ());
281
- // The default sampling interval is 1000us. If the sampling interval is
282
- // different, set the sampling interval.
283
- if (samplingIntervalUS != 1000 ) {
284
- cpuProfiler->SetSamplingInterval (samplingIntervalUS);
285
- }
281
+ cpuProfiler->SetSamplingInterval (samplingIntervalUS);
286
282
#endif
287
283
288
284
Local<String> name =
You can’t perform that action at this time.
0 commit comments