Class: TestProf::MemoryProf::Configuration

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

Overview

MemoryProf configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

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.



28
29
30
# File 'lib/test_prof/memory_prof.rb', line 28

def mode
  @mode
end

#top_countObject

Returns the value of attribute top_count.



28
29
30
# File 'lib/test_prof/memory_prof.rb', line 28

def top_count
  @top_count
end