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