class Puppet::Util::Profiler::ObjectCounts
Public Instance Methods
finish(before)
click to toggle source
# File lib/puppet/util/profiler/object_counts.rb 8 def finish(before) 9 after = ObjectSpace.count_objects 10 11 diff = before.collect do |type, count| 12 [type, after[type] - count] 13 end 14 15 diff.sort.collect { |pair| pair.join(': ') }.join(', ') 16 end
start()
click to toggle source
# File lib/puppet/util/profiler/object_counts.rb 4 def start 5 ObjectSpace.count_objects 6 end