Introduce support for dumping Rails process heap at the end of a benchmark run

This commit is contained in:
Lourens Naudé
2014-12-07 22:54:35 +00:00
parent c273a6d1d4
commit fb60daa867
4 changed files with 36 additions and 3 deletions

View File

@ -1,3 +1,8 @@
if ENV['DISCOURSE_DUMP_HEAP'] == "1"
require 'objspace'
ObjectSpace.trace_object_allocations_start
end
require 'rubygems'
# Set up gems listed in the Gemfile.