Added profiling with ruby-prof

I'm adding back the profiling with ruby-prof. 

It was removed due to uselessness, but proved to be useful in some cases.