Sha256: 3e816a3ee049a69d857c79eb7bbd649a13e01885b96e8f0dc914b1ef51ab7320
Contents?: true
Size: 400 Bytes
Versions: 120
Compression:
Stored size: 400 Bytes
Contents
require_relative '../../../puppet/util/profiler/logging' class Puppet::Util::Profiler::ObjectCounts < Puppet::Util::Profiler::Logging def start ObjectSpace.count_objects end def finish(before) after = ObjectSpace.count_objects diff = before.collect do |type, count| [type, after[type] - count] end diff.sort.collect { |pair| pair.join(': ') }.join(', ') end end
Version data entries
120 entries across 120 versions & 1 rubygems