mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
Lazily load profiler hooks
This commit is contained in:
@@ -250,6 +250,8 @@ module Liquid
|
||||
|
||||
def with_profiling
|
||||
if @profiling && !@options[:included]
|
||||
Liquid.load_profiler_hooks unless Profiler.hooks_loaded
|
||||
|
||||
@profiler = Profiler.new
|
||||
@profiler.start
|
||||
|
||||
|
||||
Reference in New Issue
Block a user