time saving log

This commit is contained in:
Sam 2013-11-15 18:21:19 +11:00
parent ce6b0ff22e
commit 8a868bad58
1 changed files with 2 additions and 1 deletions

View File

@ -49,8 +49,9 @@ module Middleware::UnicornOobgc
# While tuning consider printing this out, each time this happens you saved
# a user from running a GC inline
# puts "OobGC invoked req count: #{@num_requests} largest delta: #{largest}"
t = Time.now
GC.start
puts "OobGC invoked req count: #{@num_requests} largest delta: #{largest} #{((Time.now - t) * 1000).to_i}ms saved"
@num_requests = 0
end
end