From 3c2b10ddaf9a300e4e1433ea4fb98e3f2d569f4c Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 17 Sep 2013 10:23:44 +1000 Subject: [PATCH] tidy up method --- script/measure.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/script/measure.rb b/script/measure.rb index 4c76d898b14..f7373919859 100644 --- a/script/measure.rb +++ b/script/measure.rb @@ -1,20 +1,16 @@ # using this script to try figure out why Rails 2 is slower that 1.9 # -require 'objspace' -require 'benchmark' -# require 'ruby-prof' require 'memory_profiler' - result = MemoryProfiler.report do - require File.expand_path(File.dirname(__FILE__) + "/../config/environment") - # require 'ruby-prof' + require File.expand_path("../../config/environment", __FILE__) end result.pretty_print exit +require 'benchmark' def profile_allocations(name) GC.disable