Class: Contrast::Config::HeapDumpConfiguration

Inherits:
BaseConfiguration show all
Defined in:
lib/contrast/config/heap_dump_configuration.rb

Overview

Common Configuration settings. Those in this section pertain to the Heap Dump collection functionality of the Agent.

Constant Summary collapse

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
}.cs__freeze

Constants inherited from BaseConfiguration

BaseConfiguration::BOOLEANS, BaseConfiguration::EMPTY_VALUE

Instance Attribute Summary

Attributes inherited from BaseConfiguration

#map

Instance Method Summary collapse

Methods inherited from BaseConfiguration

#assign_value_to_path_array, #nil?

Constructor Details

#initialize(hsh) ⇒ HeapDumpConfiguration

Returns a new instance of HeapDumpConfiguration.



18
19
20
# File 'lib/contrast/config/heap_dump_configuration.rb', line 18

def initialize hsh
  super(hsh, KEYS)
end