Class: TestProf::MemoryProf::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/memory_prof.rb

Overview

MemoryProf configuration

Constant Summary collapse

MODES =
%w[alloc rss gc].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



33
34
35
36
# File 'lib/test_prof/memory_prof.rb', line 33

def initialize
  self.mode = ENV["TEST_MEM_PROF"]
  self.top_count = ENV["TEST_MEM_PROF_COUNT"]
end

Instance Attribute Details

#modeObject

Returns the value of attribute mode.



31
32
33
# File 'lib/test_prof/memory_prof.rb', line 31

def mode
  @mode
end

#top_countObject

Returns the value of attribute top_count.



31
32
33
# File 'lib/test_prof/memory_prof.rb', line 31

def top_count
  @top_count
end