For example, I have Update action in Product Controller. I want to measure how much memory consumption when the Update ac开发者_如何学Gotion being invoked.
thanks.
New Relic's RPM will do what you need - http://www.bestechvideos.com/2009/03/21/railslab-scaling-rails-episode-4-new-relic-rpm
also take a look at some of the answers here: ruby/ruby on rails memory leak detection
Ruby Memory Validator monitors memory allocation for Ruby applications.
If you want to modify your Ruby runtime to add a memory tracking API to it, take a look at this.
精彩评论