@@ -14,7 +14,7 @@ def create_profiler
1414
1515 # We take a dummy sample so that the context for the main thread is created, as otherwise the GC profiling methods do
1616 # not create it (because we don't want to do memory allocations in the middle of GC)
17- Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_sample ( @collector , Thread . current )
17+ Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_sample ( @collector , Thread . current , false )
1818 end
1919
2020 def run_benchmark
@@ -29,7 +29,7 @@ def run_benchmark
2929 x . report ( 'profiler gc' ) do
3030 Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_on_gc_start ( @collector )
3131 Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_on_gc_finish ( @collector )
32- Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_sample_after_gc ( @collector , false )
32+ Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_sample_after_gc ( @collector , false , false )
3333 end
3434
3535 x . save! "#{ File . basename ( __FILE__ ) } -results.json" unless VALIDATE_BENCHMARK_MODE
@@ -52,7 +52,7 @@ def run_benchmark
5252 estimated_gc_per_minute . times do
5353 Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_on_gc_start ( @collector )
5454 Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_on_gc_finish ( @collector )
55- Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_sample_after_gc ( @collector , false )
55+ Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_sample_after_gc ( @collector , false , false )
5656 end
5757
5858 @recorder . serialize
0 commit comments