playing with my script, feel free to ignore
This commit is contained in:
parent
568a9b1b06
commit
fb66dd7953
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue