# File lib/active_support/testing/performance.rb, line 261 261: def benchmark 262: with_gc_stats do 263: before = measure 264: yield 265: @total += (measure - before) 266: end 267: end
# File lib/active_support/testing/performance/ruby.rb, line 77 77: def measure_mode 78: self.class::Mode 79: end
# File lib/active_support/testing/performance.rb, line 257 257: def name 258: @name ||= self.class.name.demodulize.underscore 259: end
overridden by each implementation
# File lib/active_support/testing/performance.rb, line 270 270: def profile; end
# File lib/active_support/testing/performance/rubinius.rb, line 69 69: def profile 70: yield 71: end
overridden by each implementation
# File lib/active_support/testing/performance/ruby.rb, line 90 90: def with_gc_stats 91: yield 92: end
# File lib/active_support/testing/performance/ruby/yarv.rb, line 9 9: def with_gc_stats 10: GC::Profiler.enable 11: GC.start 12: yield 13: ensure 14: GC::Profiler.disable 15: end
# File lib/active_support/testing/performance/ruby/mri.rb, line 9 9: def with_gc_stats 10: GC.enable_stats 11: GC.start 12: yield 13: ensure 14: GC.disable_stats 15: end
# File lib/active_support/testing/performance/rubinius.rb, line 74 74: def with_gc_stats 75: @loopback = Rubinius::Agent.loopback 76: GC.run(true) 77: yield 78: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.