Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby 1.9.3 compatible memory profiling tools with Rails

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.

like image 678
Schneems Avatar asked Oct 26 '12 15:10

Schneems


1 Answers

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!).

like image 155
d11wtq Avatar answered Nov 05 '22 11:11

d11wtq