I'd like to profile a Rails app using ruby-prof and JMeter. I'm not interested in suggested methods of profiling particular controller/action/ or model method, I'd like to profile full stack, top to bottom.
So I run something like this:
RAILS_ENV=production ruby-prof -f prof.out script/server > /dev/null
Then I run my JMeter test plan on it. The problem however is that interrupting it with CTRL+C or SIGKILL kills ruby-prof too before it can write any output. How do I stop mongrel server without interrupting ruby-prof?