Method: Liquid::Profiler#initialize
- Defined in:
- lib/liquid/profiler.rb
#initialize ⇒ Profiler
Returns a new instance of Profiler.
99 100 101 102 103 104 105 106 107 |
# File 'lib/liquid/profiler.rb', line 99 def initialize @partial_stack = ["<root>"] @root_timing = Timing.new("", current_partial) @timing_stack = [@root_timing] @render_start_at = Time.now @render_end_at = @render_start_at end |