Ruby 1.9.3 compatible memory profiling tools with Rails

profiling, ruby, ruby-on-rails

Solution

I've had success with ruby-prof.

It has various ways of obtaining the profile data and presents a lot of information, which can be a bit overwhelming initially. It really solved a problem for me and helped me remove a major bottleneck from something I was working on (I was calling `require` from inside a method, which was being called inside a tight loop... crunch!).

Problem

I'm looking for some tools that are 1.9.3 compatible that can give me some real world usage numbers on the memory a rails program is taking while being used in development. In a perfect world it would be able to break out that memory usage by class, or some way to tell us what can be tweaked. Please only recommend a tool if you've used it and you endorse it.

Original source