public Method

RequestProfiler.run

There's no documentation for this item.

Source Code

# File action_controller/request_profiler.rb, line 80
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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.