Class: Metrician::MethodTimer
- Defined in:
- lib/metrician/reporters/method_timer.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Reporter
Class Method Details
.enabled? ⇒ Boolean
5 6 7 |
# File 'lib/metrician/reporters/method_timer.rb', line 5 def self.enabled? Metrician.configuration[:method_timer][:enabled] end |
Instance Method Details
#instrument ⇒ Object
9 10 11 |
# File 'lib/metrician/reporters/method_timer.rb', line 9 def instrument Module.send(:include, TimingMethodInterceptor) end |