Forum: Ruby on Rails How to use Memory Profiler

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mike Rumble (Guest)
on 2007-08-01 21:52
(Received via mailing list)
Hello

I'm looking to do some profiling of my app using the MemoryProfiler
class at
http://scottstuff.net/blog/articles/2006/08/17/mem...
which I know is a popular choice for this kind of thing.

I'm having a bit of a blank moment in getting this working. The blog
post says to just load the code and then run MemoryProfiler.start, but
I'm not sure of how to actually load the code, should it be in /lib or
somewhere like that, or do I explicitly need to load it using irb? The
comments on the blog post say that MemoryProfiler.start should be
placed at the very bottom of environment.rb, is that correct?

Any help from anyone who's used this script before will be
appreciated!

Thanks.
This topic is locked and can not be replied to.