Class: SpeedGun::Profiler::ActionView
- Defined in:
- lib/speed_gun/profiler/action_view.rb
Instance Attribute Summary collapse
-
#template_path ⇒ Object
(also: #title)
readonly
Returns the value of attribute template_path.
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
#template_path ⇒ Object (readonly) Also known as: title
Returns the value of attribute template_path.
6 7 8 |
# File 'lib/speed_gun/profiler/action_view.rb', line 6 def template_path @template_path end |
Instance Method Details
#before_profile(action_view, *args) ⇒ Object
9 10 11 |
# File 'lib/speed_gun/profiler/action_view.rb', line 9 def before_profile(action_view, *args) @template_path = action_view.instance_variable_get(:@virtual_path) end |