this doesn't work?! :(
[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 methodexplore_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 gem_original_require' from /sw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from ./script/performance/profiler:3
or as a performance test:
[aurora:~/work/photovoo] dfl% ./script/performance/profiler test/performance/explore_test.rb
Loading Rails...
Using the ruby-prof extension.
(eval):1:in test': wrong number of arguments (ArgumentError) from (eval):1:inprofile_me'
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 gem_original_require' from /sw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from ./script/performance/profiler:3