Sha256: b5876c26c82aa61cd23bb0aaf53ce7e13ff7a759faa2d2ce2de4f65129768068
Contents?: true
Size: 329 Bytes
Versions: 10
Compression:
Stored size: 329 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.to_text(columns: [:sourcefile, :sourceline, :class_path, :method_id, :class])
Version data entries
10 entries across 9 versions & 2 rubygems