Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'allocation_stats'
- stats = AllocationStats.trace { x = 'stuff'; String.new(x) }
- puts stats.allocations(alias_paths: true).to_text
- puts
- stats2 = AllocationStats.trace { String.new("stuff")}
- puts stats2.allocations(alias_paths: true).to_text
- puts
- stats3 = AllocationStats.trace { x = "stuff" }
- puts stats3.allocations(alias_paths: true).to_text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement