tidy up method

This commit is contained in:
Sam 2013-09-17 10:23:44 +10:00
parent 6af1e12cc1
commit 3c2b10ddaf
1 changed files with 2 additions and 6 deletions

View File

@ -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