lib/contrast/config/heap_dump_configuration.rb in contrast-agent-4.6.0 vs lib/contrast/config/heap_dump_configuration.rb in contrast-agent-4.7.0
- old
+ new
@@ -5,15 +5,21 @@
module Config
# Common Configuration settings. Those in this section pertain to the
# Heap Dump collection functionality of the Agent.
class HeapDumpConfiguration < BaseConfiguration
KEYS = {
- enable: Contrast::Config::DefaultValue.new(Contrast::Utils::ObjectShare::FALSE), # should dumps be taken
- path: Contrast::Config::DefaultValue.new('contrast_heap_dumps'), # dir to which dumps should be saved
- delay_ms: Contrast::Config::DefaultValue.new(10_000), # time, in ms, after initialization to delay before taking dump
- window_ms: Contrast::Config::DefaultValue.new(10_000), # ms between each dump
- count: Contrast::Config::DefaultValue.new(5), # number of dumps to take
- clean: Contrast::Config::DefaultValue.new(Contrast::Utils::ObjectShare::FALSE) # remove temporary objects
+ enable: # should dumps be taken
+ Contrast::Config::DefaultValue.new(Contrast::Utils::ObjectShare::FALSE),
+ path: # dir to which dumps should be
+ Contrast::Config::DefaultValue.new('contrast_heap_dumps'), # saved
+ delay_ms: # time, in ms, after initialization
+ Contrast::Config::DefaultValue.new(10_000), # to delay before taking dump
+ window_ms: # ms between each dump
+ Contrast::Config::DefaultValue.new(10_000), #
+ count: # number of dumps to take
+ Contrast::Config::DefaultValue.new(5), #
+ clean: # remove temporary objects or not
+ Contrast::Config::DefaultValue.new(Contrast::Utils::ObjectShare::FALSE) #
}.cs__freeze
def initialize hsh
super(hsh, KEYS)
end