Easy steps for CPU profiling a Rails app
- add ruby-prof to your gemfile (https://github.com/ruby-prof/ruby-prof)
- grab kcachegrind or qcachegrind (brew install qcachegrind graphviz on os x)
- plop development_profiler.rb in lib in your app
- wrap your questionable code in a prof block
- open the file in qcachegrind (It'll live in tmp/performance in your app)
hi @mikeauclair thanks for this gist, but i'm getting this error:
I found that I can change it with:
But it creates some files in my directory, example:
I see that they don't have the extension .clt...