Class: SpeedGun::Profiler::ActionController
- Defined in:
- lib/speed_gun/profiler/action_controller.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
(also: #title)
readonly
Returns the value of attribute action_name.
Attributes inherited from Base
#backtrace, #elapsed_time, #id, #parent_profile_id
Instance Method Summary collapse
Methods inherited from Base
#as_msgpack, hook_method, #html, inherited, #initialize, label, #label, load, #measure, profile, #profile, profiler_type, #to_msgpack, #type
Constructor Details
This class inherits a constructor from SpeedGun::Profiler::Base
Instance Attribute Details
#action_name ⇒ Object (readonly) Also known as: title
Returns the value of attribute action_name.
6 7 8 |
# File 'lib/speed_gun/profiler/action_controller.rb', line 6 def action_name @action_name end |
Instance Method Details
#before_profile(controller, action) ⇒ Object
9 10 11 |
# File 'lib/speed_gun/profiler/action_controller.rb', line 9 def before_profile(controller, action) @action_name = "#{controller.class.name}##{action}" end |