Class: TestProf::StackProf::Configuration
- Inherits:
-
Object
- Object
- TestProf::StackProf::Configuration
- Defined in:
- lib/test_prof/stack_prof.rb
Overview
StackProf configuration
Instance Attribute Summary collapse
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
29 30 31 32 |
# File 'lib/test_prof/stack_prof.rb', line 29 def initialize @mode = ENV.fetch('TEST_STACK_PROF_MODE', :wall).to_sym @raw = ENV['TEST_STACK_PROF'] == 'raw' || ENV['TEST_STACK_PROF_RAW'] == 1 end |
Instance Attribute Details
#interval ⇒ Object
Returns the value of attribute interval.
27 28 29 |
# File 'lib/test_prof/stack_prof.rb', line 27 def interval @interval end |
#mode ⇒ Object
Returns the value of attribute mode.
27 28 29 |
# File 'lib/test_prof/stack_prof.rb', line 27 def mode @mode end |
#raw ⇒ Object
Returns the value of attribute raw.
27 28 29 |
# File 'lib/test_prof/stack_prof.rb', line 27 def raw @raw end |