I would like to profile a Rails application using ruby-prof and JMeter. I am not interested in the proposed profiling methods for a particular control / action / model method; I would like to profile the full stack from top to bottom.
So, I run something like this:
RAILS_ENV=production ruby-prof -f prof.out script/server > /dev/null
Then I launched the JMeter test plan. However, the problem is that interrupting with CTRL + C or SIGKILL kills ruby-prof before it can write any output. How to stop a mongrel server without interrupting ruby-prof?
skrat source share