From fb66dd79531d72ef0f2e2e55d270e0f87fdae9f8 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 6 Sep 2013 18:17:29 +1000 Subject: [PATCH] playing with my script, feel free to ignore --- script/measure.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/script/measure.rb b/script/measure.rb index 4b303172e..4c76d898b 100644 --- a/script/measure.rb +++ b/script/measure.rb @@ -2,9 +2,18 @@ # require 'objspace' require 'benchmark' -require 'ruby-prof' +# require 'ruby-prof' -require File.expand_path(File.dirname(__FILE__) + "/../config/environment") +require 'memory_profiler' + + +result = MemoryProfiler.report do + require File.expand_path(File.dirname(__FILE__) + "/../config/environment") + # require 'ruby-prof' +end +result.pretty_print + +exit def profile_allocations(name)