Permalink
Browse files

Added option to force GC

  • Loading branch information...
1 parent 7a9fe6b commit f73b4d15367703f676470662423b02ed5ce70e17 @pjb3 pjb3 committed with Jun 10, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/memprof/middleware.rb
View
4 lib/memprof/middleware.rb
@@ -11,6 +11,10 @@ def call(env)
puts
puts '-' * 80
puts '-' * 80
+ if @options[:force_gc]
+ puts "Forcing GC...."
+ GC.start
+ end
}
ret
end

0 comments on commit f73b4d1

Please sign in to comment.