Sha256: 589555e8aa2d5d618f4a52a02d261d23533d9cf0166bbe04c285893e8de8c138
Contents?: true
Size: 302 Bytes
Versions: 10
Compression:
Stored size: 302 Bytes
Contents
class MyClass def my_method @hash = {2 => "foo", 3 => "bar", 5 => "baz"} @string = "quux" end end require File.join(__dir__, "..", "lib", "allocation_stats") stats = AllocationStats.trace { MyClass.new.my_method } puts stats.allocations.group_by(:sourcefile, :sourceline, :class).to_text
Version data entries
10 entries across 9 versions & 2 rubygems