class Puppet::Util::Profiler::WallClock

A profiler implementation that measures the number of seconds a segment of code takes to execute and provides a callback with a string representation of the profiling information.

@api private

Public Instance Methods

do_finish(context, description, metric_id) click to toggle source
   # File lib/puppet/util/profiler/wall_clock.rb
13 def do_finish(context, description, metric_id)
14   {:time => context.stop,
15    :msg => _("took %{context} seconds") % { context: context }}
16 end
do_start(description, metric_id) click to toggle source
   # File lib/puppet/util/profiler/wall_clock.rb
 9 def do_start(description, metric_id)
10   Timer.new
11 end