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 148
148:         def initialize(harness, metric)
149:           @harness, @metric, @supported = harness, metric, false
150:         end

Public Instance Methods

report() click to toggle source
     # File lib/active_support/testing/performance.rb, line 152
152:         def report
153:           if @supported
154:             rate = @total / full_profile_options[:runs]
155:             '%20s: %s' % [@metric.name, @metric.format(rate)]
156:           else
157:             '%20s: unsupported' % @metric.name
158:           end
159:         end

Protected Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.