Module: ActionController::Benchmarking
- Defined in:
- lib/action_controller/benchmarking.rb
Overview
The benchmarking module times the performance of actions and reports to the logger. If the Active Record package has been included, a separate timing section for database calls will be added as well.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
7 8 9 10 11 12 13 14 |
# File 'lib/action_controller/benchmarking.rb', line 7 def self.included(base) base.extend(ClassMethods) base.class_eval do alias_method_chain :perform_action, :benchmark alias_method_chain :render, :benchmark end end |