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

Version Path
puppet-7.11.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.11.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.11.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.11.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.10.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.10.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.10.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.10.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.9.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.9.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.9.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.9.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.8.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.8.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.8.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.8.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.7.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.7.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.7.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.7.0-universal-darwin lib/puppet/util/profiler/object_counts.rb