Source: show | on GitHub
# File activesupport/lib/active_support/testing/performance/ruby/yarv.rb, line 40 40: def measure 41: GC.count 42: end
# File activesupport/lib/active_support/testing/performance/ruby/mri.rb, line 40 40: def measure 41: RubyProf.measure_gc_runs 42: end
# File activesupport/lib/active_support/testing/performance/jruby.rb, line 102 102: def measure 103: ManagementFactory.garbage_collector_mx_beans.inject(0) { |total_runs, current_gc| total_runs += current_gc.collection_count } 104: end
# File activesupport/lib/active_support/testing/performance/rubinius.rb, line 100 100: def measure 101: loopback.get("system.gc.full.count").last + loopback.get("system.gc.young.count").last 102: end