Module: Middleman::Profiling

Defined in:
lib/middleman-core/profiling.rb

Defined Under Namespace

Classes: NullProfiler, RubyProfProfiler

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.profilerObject



6
7
8
# File 'lib/middleman-core/profiling.rb', line 6

def profiler
  @profiler ||= NullProfiler.new
end

Class Method Details

.report(report_name) ⇒ Object

Stop the profiler and generate a report. Make sure to call start first



16
17
18
# File 'lib/middleman-core/profiling.rb', line 16

def report(report_name)
  profiler.report(report_name)
end

.startObject

Start the profiler



11
12
13
# File 'lib/middleman-core/profiling.rb', line 11

def start
  profiler.start
end