playing with my script, feel free to ignore

This commit is contained in:
Sam 2013-09-06 18:17:29 +10:00
parent 568a9b1b06
commit fb66dd7953

View file

@ -2,9 +2,18 @@
# #
require 'objspace' require 'objspace'
require 'benchmark' 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) def profile_allocations(name)