Class: TestProf::StackProf::Configuration

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

Overview

StackProf configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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

def initialize
  @mode = ENV.fetch('TEST_STACK_PROF_MODE', :wall).to_sym
  @raw = ENV['TEST_STACK_PROF_RAW'] == '1'
end

Instance Attribute Details

#intervalObject

Returns the value of attribute interval.



25
26
27
# File 'lib/test_prof/stack_prof.rb', line 25

def interval
  @interval
end

#modeObject

Returns the value of attribute mode.



25
26
27
# File 'lib/test_prof/stack_prof.rb', line 25

def mode
  @mode
end

#rawObject

Returns the value of attribute raw.



25
26
27
# File 'lib/test_prof/stack_prof.rb', line 25

def raw
  @raw
end