Sure. This wasn't what David asked. Nevertheless,
he has to detach himself from -for- so that the
commands of interest are those monitored by
the profiler.
Nick
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of
> Mark Schaffer
> Sent: 14 November 2004 17:22
> To: [email protected]
> Subject: RE: st: time elapsed within 'for' loops
>
>
> -profiler- should still give David almost what he wants, even
> if he doesn't
> use -foreach-. I just tried a -reshape- with -profiler-, and
> most of the
> time spent reshaping was in the the subroutine -Wide-.
> Presumably there is
> another subroutine -Long-. If these are where most of the
> time is spent
> reshaping David's data, he'll something not too far from the
> right answer to
> his question.
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/