instance method
with_gc_stats
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.2.22.5Signature
with_gc_stats()
No documentation comment.
Source
# File activesupport/lib/active_support/testing/performance.rb, line 269
def with_gc_stats
GC::Profiler.enable
GC.start
yield
ensure
GC::Profiler.disable
end
Defined in activesupport/lib/active_support/testing/performance.rb line 269
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::Performance::Metrics::Base