instance method run

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

run()

No documentation comment.

Source
# File actionpack/lib/action_controller/request_profiler.rb, line 86
    def run
      sandbox = Sandbox.new(options[:script])

      puts 'Warming up once'

      elapsed = warmup(sandbox)
      puts '%.2f sec, %d requests, %d req/sec' % [elapsed, sandbox.request_count, sandbox.request_count / elapsed]
      puts "\n#{options[:benchmark] ? 'Benchmarking' : 'Profiling'} #{options[:n]}x"

      options[:benchmark] ? benchmark(sandbox) : profile(sandbox)
    end

Defined in actionpack/lib/action_controller/request_profiler.rb line 86 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::RequestProfiler

Type at least 2 characters to search.

↑↓ navigate · open · esc close