Methods
Public Class methods
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 96 96: def initialize(harness, metric) 97: @harness, @metric = harness, metric 98: end
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 100 100: def report 101: rate = @total / profile_options[:runs] 102: '%20s: %s' % [@metric.name, @metric.format(rate)] 103: end
Protected Instance methods
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 106 106: def output_filename 107: "#{profile_options[:output]}/#{full_test_name}_#{@metric.name}" 108: end