Module: Middleman::Profiling

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

Defined Under Namespace

Classes: NullProfiler, RubyProfProfiler

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.profilerObject


9
10
11
# File 'middleman-core/lib/middleman-core/profiling.rb', line 9

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


19
20
21
# File 'middleman-core/lib/middleman-core/profiling.rb', line 19

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

.startObject

Start the profiler


14
15
16
# File 'middleman-core/lib/middleman-core/profiling.rb', line 14

def start
  profiler.start
end