File tree 3 files changed +7
-17
lines changed
lib/datadog/core/configuration
spec/datadog/core/configuration
3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -104,16 +104,6 @@ only-profiling-heap:
104
104
DD_PROFILING_EXPERIMENTAL_HEAP_ENABLED : " true"
105
105
ADD_TO_GEMFILE : " gem 'datadog', github: 'datadog/dd-trace-rb', ref: '$CI_COMMIT_SHA'"
106
106
107
- only-profiling-heap-clean-after-gc :
108
- extends : .benchmarks
109
- variables :
110
- DD_BENCHMARKS_CONFIGURATION : only-profiling
111
- DD_PROFILING_ENABLED : " true"
112
- DD_PROFILING_ALLOCATION_ENABLED : " true"
113
- DD_PROFILING_EXPERIMENTAL_HEAP_ENABLED : " true"
114
- DD_PROFILING_HEAP_CLEAN_AFTER_GC_ENABLED : " true"
115
- ADD_TO_GEMFILE : " gem 'datadog', github: 'datadog/dd-trace-rb', ref: '$CI_COMMIT_SHA'"
116
-
117
107
only-profiling-gvl :
118
108
extends : .benchmarks
119
109
variables :
Original file line number Diff line number Diff line change @@ -518,13 +518,13 @@ def initialize(*_)
518
518
# Controls if the heap profiler should attempt to clean young objects after GC, rather than just at
519
519
# serialization time. This lowers memory usage and high percentile latency.
520
520
#
521
- # Only takes effect when used together with `gc_enabled: true` and `experimental_heap_enabled: true`.
521
+ # Only has effect when used together with `gc_enabled: true` and `experimental_heap_enabled: true`.
522
522
#
523
- # @default false
523
+ # @default true
524
524
option :heap_clean_after_gc_enabled do |o |
525
525
o . type :bool
526
526
o . env 'DD_PROFILING_HEAP_CLEAN_AFTER_GC_ENABLED'
527
- o . default false
527
+ o . default true
528
528
end
529
529
end
530
530
Original file line number Diff line number Diff line change 932
932
context 'is not defined' do
933
933
let ( :environment ) { nil }
934
934
935
- it { is_expected . to be false }
935
+ it { is_expected . to be true }
936
936
end
937
937
938
938
[ true , false ] . each do |value |
947
947
948
948
describe '#heap_clean_after_gc_enabled=' do
949
949
it 'updates the #heap_clean_after_gc_enabled setting' do
950
- expect { settings . profiling . advanced . heap_clean_after_gc_enabled = true }
950
+ expect { settings . profiling . advanced . heap_clean_after_gc_enabled = false }
951
951
. to change { settings . profiling . advanced . heap_clean_after_gc_enabled }
952
- . from ( false )
953
- . to ( true )
952
+ . from ( true )
953
+ . to ( false )
954
954
end
955
955
end
956
956
You can’t perform that action at this time.
0 commit comments