Parent

Class Index [+]

Quicksearch

ActiveSupport::Testing::Performance::Performer

Public Class Methods

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

Public Instance Methods

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

Protected Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.