Methods
B
M
N
P
W
Included Modules
Attributes
[R] loopback
[R] total
Class Public methods
new()
# File activesupport/lib/active_support/testing/performance.rb, line 253
def initialize
  @total = 0
end
Instance Public methods
benchmark()
# File activesupport/lib/active_support/testing/performance.rb, line 261
def benchmark            
  with_gc_stats do
    before = measure
    yield
    @total += (measure - before)
  end
end
measure_mode()
# File activesupport/lib/active_support/testing/performance/ruby.rb, line 77
def measure_mode
  self.class::Mode
end
name()
# File activesupport/lib/active_support/testing/performance.rb, line 257
def name
  @name ||= self.class.name.demodulize.underscore
end
profile()
# File activesupport/lib/active_support/testing/performance/rubinius.rb, line 69
def profile
  yield
end
Instance Protected methods
with_gc_stats()
# File activesupport/lib/active_support/testing/performance/rubinius.rb, line 74
def with_gc_stats
  @loopback = Rubinius::Agent.loopback
  GC.run(true)
  yield
end