lib/puppet/rails/benchmark.rb
# Collect partial benchmarks to be logged when they're
# all done.
#   These are always low-level debugging so we only
# print them if time_debug is enabled.
Collect partial benchmarks to be logged when they're
all done.
These are always low-level debugging so we only
print them if time_debug is enabled.
Collect partial benchmarks to be logged when they ' re all done . These are always low - level debugging so we only print them if time_debug is enabled .
def accumulate_benchmark(message, label)
    return yield unless time_debug?
    $benchmarks[:accumulated][message] ||= Hash.new(0)
    $benchmarks[:accumulated][message][label] += Benchmark.realtime { yield }
  end
def accumulate_benchmark ( message , label ) return yield unless time_debug? $benchmarks [ :accumulated ] [ message ] ||= Hash . new ( 0 ) $benchmarks [ :accumulated ] [ message ] [ label ] += Benchmark . realtime { yield } end
Collect partial benchmarks to be logged when they're
all done.
Collect partial benchmarks to be logged when they ' re all done .
message
<not_specific>
label
<not_specific>