bin/generate-report in heap-profiler-0.5.0 vs bin/generate-report in heap-profiler-0.6.0

- old
+ new

@@ -4,10 +4,21 @@ require "heap-profiler" require 'fileutils' require 'date' class SomeCustomStuff + def initialize + @root = 1 + end + + def foo + @foo = 1 + end + + def bar + @bar = 2 + end end $freed_objects = [+"i am free", +"i am free too"] dir = ARGV.first @@ -16,9 +27,11 @@ if ARGV[1] == '--empty' HeapProfiler.report(dir) {} else HeapProfiler.report(dir) do + SomeCustomStuff.new.tap(&:foo).tap(&:bar) + SomeCustomStuff.new.tap(&:bar) $retained_objects = [ +"I am retained", +"I am retained", +"I am retained too", SomeCustomStuff.new,