Sha256: 69d29b27d3235140932246bd47bc0a66eb3d1feeac1364317e011fb1b175dd2b

Contents?: true

Size: 303 Bytes

Versions: 10

Compression:

Stored size: 303 Bytes

Contents

require "yaml"
require File.join(__dir__, "..", "lib", "allocation_stats")

stats = AllocationStats.trace do
  y = YAML.dump(["one string", "two string"]) # lots of objects from Rbconfig::CONFIG["rubylibdir"]
end

stats.allocations.group_by(:sourcefile, :class).all.keys.each { |key| puts key.inspect }

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/allocation_stats-0.1.5/examples/trace_psych_keys.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/allocation_stats-0.1.5/examples/trace_psych_keys.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/allocation_stats-0.1.5/examples/trace_psych_keys.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/allocation_stats-0.1.5/examples/trace_psych_keys.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/allocation_stats-0.1.5/examples/trace_psych_keys.rb
allocation_stats-0.1.5 examples/trace_psych_keys.rb
allocation_stats-0.1.4 examples/trace_psych_keys.rb
allocation_stats-0.1.3 examples/trace_psych_keys.rb
allocation_stats-0.1.2 examples/trace_psych_keys.rb
allocation_stats-0.1.1 examples/trace_psych_keys.rb