module Middleman::Profiling
Attributes
The profiler instance. There can only be one!
Public Class Methods
Source
# File lib/middleman-core/profiling.rb, line 6 def profiler @profiler ||= NullProfiler.new end
Source
# File lib/middleman-core/profiling.rb, line 16 def report(report_name) profiler.report(report_name) end
Stop the profiler and generate a report. Make sure to call start first
Source
# File lib/middleman-core/profiling.rb, line 11 def start profiler.start end
Start the profiler