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.25.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.25.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.25.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.25.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.24.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.24.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.24.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.24.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.23.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.23.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.23.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.23.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.22.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.22.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.22.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.22.0-universal-darwin lib/puppet/util/profiler/object_counts.rb
puppet-7.21.0 lib/puppet/util/profiler/object_counts.rb
puppet-7.21.0-x86-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.21.0-x64-mingw32 lib/puppet/util/profiler/object_counts.rb
puppet-7.21.0-universal-darwin lib/puppet/util/profiler/object_counts.rb