module Middleman::Profiling

Public Class Methods

profiler() click to toggle source
# File lib/middleman-core/profiling.rb, line 8
def self.profiler
  @profiler ||= NullProfiler.new
end
profiler=(prof) click to toggle source

The profiler instance. There can only be one! rubocop:disable TrivialAccessors

# File lib/middleman-core/profiling.rb, line 5
def self.profiler=(prof)
  @profiler = prof
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 18
def self.report(report_name)
  profiler.report(report_name)
end
start() click to toggle source

Start the profiler

# File lib/middleman-core/profiling.rb, line 13
def self.start
  profiler.start
end