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.
我正在寻找一些与1.9.3兼容的工具,它们可以在rails程序正在开发的内存中提供一些真实的使用数字。在一个完美的世界里,它可以按类列出内存使用情况,或者以某种方式告诉我们什么可以调整。如果你已经使用了它,并且你支持它,请只推荐一个工具。
1 个解决方案
#1
4
I've had success with ruby-prof.
我和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!).
它有各种获取配置文件数据的方法,并且提供了大量的信息,这在一开始可能有点难以应付。它确实为我解决了一个问题,并帮助我从正在处理的东西中移除一个主要的瓶颈(我从一个方法内部调用了require,这个方法在一个紧密循环中被调用……)危机)。
#1
4
I've had success with ruby-prof.
我和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!).
它有各种获取配置文件数据的方法,并且提供了大量的信息,这在一开始可能有点难以应付。它确实为我解决了一个问题,并帮助我从正在处理的东西中移除一个主要的瓶颈(我从一个方法内部调用了require,这个方法在一个紧密循环中被调用……)危机)。