"Randy Kramer" <rhkramer / gmail.com> schrieb im Newsbeitrag news:200504041732.52571.rhkramer / gmail.com... > On Monday 04 April 2005 09:29 am, Robert Klemme wrote: > > "Randy Kramer" <rhkramer / gmail.com> schrieb im Newsbeitrag > > > So, you really can't tell which of those parts is the biggest > > > contributor to the (presumed) problem? > > ---<good stuff snipped>--- > > > Then if you iterate only once through any Enumerable then #each shows up > > as 1 call - which can be confusing. But it's completely logical since > > it's actually called only once. Just the block is invoked multiple times. > > So, assuming that you have a lot of stuff going on in a block, that time > > can be seen nowhere else than within the time of #each - there's no extra > > marker for the block. Of course you'll see times of methods that are > > called from the block on rows of their own. > > Thanks! (I may need to read this and run the profiler a fewtimes to really > absorb this, but I think I have the gist of it.) You're welcome. And you're not alone: it took me some time to understand profiler output myself when I first dealt with it... :-) Nowadays I mostly use module Benchmark for this kind of stuff because it's less intrusive. Cheers robert