From e853bf5b84f8ea63f885b6015f31c12103a6c503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lourens=20Naud=C3=A9?= Date: Wed, 6 May 2015 10:45:20 -0400 Subject: [PATCH] Also dump object distribution --- performance/memory.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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'