File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/profiling-node/bindings Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -331,11 +331,12 @@ void SentryProfile::Start(Profiler *profiler) {
331
331
started_at = uv_hrtime ();
332
332
timestamp = timestamp_milliseconds ();
333
333
334
+ v8::CpuProfilingOptions options = v8::CpuProfilingOptions (
335
+ v8::CpuProfilingMode::kCallerLineNumbers ,
336
+ v8::CpuProfilingOptions::kNoSampleLimit , kSamplingInterval );
337
+
334
338
// Initialize the CPU Profiler
335
- profiler->cpu_profiler ->StartProfiling (
336
- profile_title,
337
- {v8::CpuProfilingMode::kCallerLineNumbers ,
338
- v8::CpuProfilingOptions::kNoSampleLimit , kSamplingInterval });
339
+ profiler->cpu_profiler ->StartProfiling (profile_title, &options);
339
340
340
341
// listen for memory sample ticks
341
342
profiler->measurements_ticker .add_cpu_listener (id, cpu_sampler_cb);
You can’t perform that action at this time.
0 commit comments