mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 11:47:15 +08:00
Introduce support for dumping Rails process heap at the end of a benchmark run
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user