@@ -14,7 +14,7 @@ def create_profiler
14
14
15
15
# We take a dummy sample so that the context for the main thread is created, as otherwise the GC profiling methods do
16
16
# 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 )
18
18
end
19
19
20
20
def run_benchmark
@@ -29,7 +29,7 @@ def run_benchmark
29
29
x . report ( 'profiler gc' ) do
30
30
Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_on_gc_start ( @collector )
31
31
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 )
33
33
end
34
34
35
35
x . save! "#{ File . basename ( __FILE__ ) } -results.json" unless VALIDATE_BENCHMARK_MODE
@@ -52,7 +52,7 @@ def run_benchmark
52
52
estimated_gc_per_minute . times do
53
53
Datadog ::Profiling ::Collectors ::ThreadContext ::Testing . _native_on_gc_start ( @collector )
54
54
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 )
56
56
end
57
57
58
58
@recorder . serialize
0 commit comments