diff --git a/performance/memory.rb b/performance/memory.rb index ed8ba46..d61a7e3 100644 --- a/performance/memory.rb +++ b/performance/memory.rb @@ -1,3 +1,9 @@ +at_exit do + p 'Objects distribution:' + require 'pp' + pp ObjectSpace.count_objects +end + require 'allocation_tracer' rescue fail("install allocation_tracer extension/gem") require File.dirname(__FILE__) + '/theme_runner'