Class: TestProf::MemoryProf::Configuration
- Inherits:
-
Object
- Object
- TestProf::MemoryProf::Configuration
- Defined in:
- lib/test_prof/memory_prof.rb
Overview
MemoryProf configuration
Constant Summary collapse
- MODES =
%w[alloc rss gc].freeze
Instance Attribute Summary collapse
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#top_count ⇒ Object
Returns the value of attribute top_count.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#mode ⇒ Object
Returns the value of attribute mode.
31 32 33 |
# File 'lib/test_prof/memory_prof.rb', line 31 def mode @mode end |
#top_count ⇒ Object
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 |