Changeset 8017
- Timestamp:
- 10/25/07 20:46:50 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/request_profiler.rb
r8016 r8017 88 88 89 89 def default_uri 90 '/ benchmarks/hello'90 '/' 91 91 end 92 92 … … 127 127 opt.banner = "USAGE: #{$0} uri [options]" 128 128 129 opt.on('-u', '--uri [URI]', 'Request URI. Defaults to http://localhost:3000/ benchmarks/hello') { |v| options[:uri] = v }129 opt.on('-u', '--uri [URI]', 'Request URI. Defaults to http://localhost:3000/') { |v| options[:uri] = v } 130 130 opt.on('-n', '--times [0000]', 'How many requests to process. Defaults to 1000.') { |v| options[:n] = v.to_i } 131 opt.on('-b', '--benchmark', 'Benchmark instead of profiling') { |v| options[:benchmark] = v } 131 132 opt.on('--method [GET]', 'HTTP request method. Defaults to GET.') { |v| options[:method] = v.upcase } 132 133 opt.on('--fixture [FILE]', 'Path to POST fixture file') { |v| options[:fixture] = v } 133 opt.on('--benchmark', 'Benchmark instead of profiling') { |v| options[:benchmark] = v }134 134 opt.on('--open [CMD]', 'Command to open profile results. Defaults to "open %s &"') { |v| options[:open] = v } 135 135 opt.on('-h', '--help', 'Show this help') { puts opt; exit }