File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/profiling-node/bindings Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -331,11 +331,10 @@ void SentryProfile::Start(Profiler *profiler) {
331331 started_at = uv_hrtime ();
332332 timestamp = timestamp_milliseconds ();
333333
334- // Initialize the CPU Profiler
335- profiler->cpu_profiler ->StartProfiling (
336- profile_title,
337- {v8::CpuProfilingMode::kCallerLineNumbers ,
338- v8::CpuProfilingOptions::kNoSampleLimit , kSamplingInterval });
334+ // Initialize the CPU Profiler
335+ profiler->cpu_profiler
336+ ->StartProfiling (profile_title, v8::CpuProfilingMode::kCallerLineNumbers ,
337+ true , v8::CpuProfilingOptions::kNoSampleLimit );
339338
340339 // listen for memory sample ticks
341340 profiler->measurements_ticker .add_cpu_listener (id, cpu_sampler_cb);
@@ -1169,6 +1168,7 @@ napi_value Init(napi_env env, napi_value exports) {
11691168 }
11701169
11711170 Profiler *profiler = new Profiler (env, isolate);
1171+ profiler->cpu_profiler ->SetSamplingInterval (kSamplingInterval );
11721172
11731173 if (napi_set_instance_data (env, profiler, FreeAddonData, NULL ) != napi_ok) {
11741174 napi_throw_error (env, nullptr , " Failed to set instance data for profiler." );
You can’t perform that action at this time.
0 commit comments