Methods
N
O
R
Class Public methods
new(harness, metric)
# File activesupport/lib/active_support/testing/performance.rb, line 148
def initialize(harness, metric)
  @harness, @metric, @supported = harness, metric, false
end
Instance Public methods
report()
# File activesupport/lib/active_support/testing/performance.rb, line 152
def report
  if @supported
    rate = @total / full_profile_options[:runs]
    '%20s: %s' % [@metric.name, @metric.format(rate)]
  else
    '%20s: unsupported' % @metric.name
  end
end
Instance Protected methods
output_filename()
# File activesupport/lib/active_support/testing/performance.rb, line 162
def output_filename
  "#{full_profile_options[:output]}/#{full_test_name}_#{@metric.name}"
end