Methods
Constants
| Mode | = | RubyProf::GC_RUNS if RubyProf.const_defined?(:GC_RUNS) |
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 427
427: def format(measurement)
428: measurement.to_i.to_s
429: end
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 422
422: def measure
423: GC.heap_info['num_gc_passes']
424: end
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 418
418: def measure
419: GC.collections
420: end
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 414
414: def measure
415: RubyProf.measure_gc_runs
416: end