class ActiveSupport::Testing::Performance::Metrics::GcTime

Constants

Mode

Public Instance Methods

measure() click to toggle source
# File lib/active_support/testing/performance/jruby.rb, line 108
def measure
  ManagementFactory.garbage_collector_mx_beans.inject(0) { |total_time, current_gc| total_time += current_gc.collection_time } / 1000.0 # seconds
end