Class: SpeedGun::Profiler::ActionView

Inherits:
Base
  • Object
show all
Defined in:
lib/speed_gun/profiler/action_view.rb

Instance Attribute Summary collapse

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_pathObject (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