class Puppet::Util::Profiler::ObjectCounts

Public Instance Methods

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