mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
playing with my script, feel free to ignore
This commit is contained in:
parent
568a9b1b06
commit
fb66dd7953
1 changed files with 11 additions and 2 deletions
|
@ -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 a new issue