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) {
331
331
started_at = uv_hrtime ();
332
332
timestamp = timestamp_milliseconds ();
333
333
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 );
339
338
340
339
// listen for memory sample ticks
341
340
profiler->measurements_ticker .add_cpu_listener (id, cpu_sampler_cb);
@@ -1169,6 +1168,7 @@ napi_value Init(napi_env env, napi_value exports) {
1169
1168
}
1170
1169
1171
1170
Profiler *profiler = new Profiler (env, isolate);
1171
+ profiler->cpu_profiler ->SetSamplingInterval (kSamplingInterval );
1172
1172
1173
1173
if (napi_set_instance_data (env, profiler, FreeAddonData, NULL ) != napi_ok) {
1174
1174
napi_throw_error (env, nullptr , " Failed to set instance data for profiler." );
You can’t perform that action at this time.
0 commit comments