Parent

Class/Module Index [+]

Quicksearch

ActiveSupport::Testing::Performance::Performer

Public Class Methods

new(harness, metric) click to toggle source
# File lib/active_support/testing/performance.rb, line 93
def initialize(harness, metric)
  @harness, @metric = harness, metric
end

Public Instance Methods

report() click to toggle source
# File lib/active_support/testing/performance.rb, line 97
def report
  rate = @total / profile_options[:runs]
  '%20s: %s' % [@metric.name, @metric.format(rate)]
end

Protected Instance Methods

output_filename() click to toggle source
# File lib/active_support/testing/performance.rb, line 103
def output_filename
  "#{profile_options[:output]}/#{full_test_name}_#{@metric.name}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.