Sha256: 16367667546ff8eed884ab51eff99dc131d4946d5079a74d8e058776e0c4b74f
Contents?: true
Size: 382 Bytes
Versions: 649
Compression:
Stored size: 382 Bytes
Contents
require '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
649 entries across 649 versions & 3 rubygems