From: Jason Roelofs Date: 2007-09-13T02:35:21+09:00 Subject: Re: Logging all method calls? ------=_Part_15856_1217087.1189618516408 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Check out profile.rb (in the standard lib), it will help you out with this. Jason On 9/12/07, Gustav Paul wrote: > > Hey > > Is there a way to log all the method calls that occur throughout the > execution of some script? Something like an hook that gets called whenever > a > method executes would be ideal. > > Eg. > > class Object > def before_method_called(method_name) > p class.name + method_name.to_s > end > end > > Thanks in advance, > Gustav Paul > ------=_Part_15856_1217087.1189618516408--