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