tidy up method
This commit is contained in:
parent
6af1e12cc1
commit
3c2b10ddaf
|
@ -1,20 +1,16 @@
|
||||||
# using this script to try figure out why Rails 2 is slower that 1.9
|
# 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'
|
require 'memory_profiler'
|
||||||
|
|
||||||
|
|
||||||
result = MemoryProfiler.report do
|
result = MemoryProfiler.report do
|
||||||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
require File.expand_path("../../config/environment", __FILE__)
|
||||||
# require 'ruby-prof'
|
|
||||||
end
|
end
|
||||||
result.pretty_print
|
result.pretty_print
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
require 'benchmark'
|
||||||
|
|
||||||
def profile_allocations(name)
|
def profile_allocations(name)
|
||||||
GC.disable
|
GC.disable
|
||||||
|
|
Loading…
Reference in New Issue