request_profiler
request_profiler copied to clipboard
WARNING: this repo is not maintained anymore, if you want to maintain it, please send an mail to rails-core. Request profiler based on integration test scripts
C:\dev\ruby\temp_rails>ruby script/performance/profiler --help Loading Rails... Using the standard Ruby profiler. (eval):1:in `profile_me': undefined local variable or method`help' for main:Object (NameError) from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/performance/profiler.rb:47 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require' from script/performance/profiler:3 don't...
[aurora:~/work/photovoo] dfl% more explore_profile.rb get '/bot/explore/photos/loved' [aurora:~/work/photovoo] dfl% ./script/performance/profiler explore_profile.rb Loading Rails... Using the ruby-prof extension. (eval):1:in `profile_me': undefined local variable or method`explore_profile' for main:Object (NameError) from /sw/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/performance/profiler.rb:24 from /sw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in...
This code: ``` puts '%.0f ms, %d requests, %d req/sec' % [elapsed, sandbox.request_count, 1000 * sandbox.request_count / elapsed] ``` can throw if elapsed == 0