Class: ActiveSupport::Testing::Performance::Profiler
- Defined in:
- activesupport/lib/active_support/testing/performance.rb,
activesupport/lib/active_support/testing/performance/ruby.rb,
activesupport/lib/active_support/testing/performance/jruby.rb,
activesupport/lib/active_support/testing/performance/rubinius.rb
Overview
overridden by each implementation
Instance Method Summary collapse
-
#initialize(*args) ⇒ Profiler
constructor
A new instance of Profiler.
- #record ⇒ Object
- #run ⇒ Object
- #time_with_block ⇒ Object
Methods inherited from Performer
Constructor Details
#initialize(*args) ⇒ Profiler
Returns a new instance of Profiler.
26 27 28 29 |
# File 'activesupport/lib/active_support/testing/performance/ruby.rb', line 26 def initialize(*args) super @supported = @metric.measure_mode rescue false end |