From: Robert Klemme Date: 2006-05-26T17:18:36+09:00 Subject: Re: How use Profiling, a Quick Guide. 2006/5/25, Victor Shepelev : > > Note that a similar thing can be achieved with set_trace_func > > Drawbacks of set_trace_func was discussed in the original topic here: > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/192294 Yes, but the other solution is more intrusive and will break if the method is redefined. If the sole purpose is counting of invocations than I'd personally prefer the approach with set_trace_func. Just my 0.02EUR... Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/