From: John Carter Date: 2006-05-25T08:13:58+09:00 Subject: Re: How use Profiling, a Quick Guide. On Wed, 24 May 2006, Victor Shepelev wrote: >> * Look at the top most items in the profile list. Usually they are >> standard library functions. Silly things like [] or +... >> Ask your self, "What could be calling these thing so often? >> Can I make it do it less often? eg. Cache the result etc.) > > Here can help my Module#add_tracer, described here > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/192291 Coool!! I _like_ it! Let that be a lesson to those who say Ruby can't do AOP or Lispish Macros. I'll just stuff in something that histograms the call path to a certain depth and that will be really really powerful. Coming soon to a Ruby snippet near you... John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand Carter's Clarification of Murphy's Law. "Things only ever go right so that they may go more spectacularly wrong later." From this principle, all of life and physics may be deduced.