On Monday 26 December 2005 17:32, Mark Nutter wrote:
> --- johnf <[EMAIL PROTECTED]> wrote:
> > On Monday 26 December 2005 12:51,
> >
> > [EMAIL PROTECTED] wrote:
> > > > Is there a way to measure how long a routine is
> >
> > taking?  I'd like
> >
> > > > to see how
> > > > much time a routine is taking and see if I can
> >
> > improve the
> >
> > > > performance by
> > > > changing the code.
> > >
> > > Check out the Microseconds function.  From there,
> >
> > you remember the
> >
> > > value of Microseconds at the beginning of the sub,
> >
> > and check it at
> >
> > > the end, do some subtracting, and you have elapsed
> >
> > time in microseconds.
> >
> > that will work but I was hoping for something that
> > listed the time for each
> > statement.  Thanks
>
> If you're on a Mac you could use a profiling app like
> Shark.  (Good luck figuring out the interface tho! ;)
>
> I'm being a bit facetious--if you are on a Mac and
> need help with Shark, let me know.  I'm no expert, but
> I've figured out a little bit of the GUI and I can
> tell you how to get timing figures on the subroutines
> at least.
>
>
> Mark Nutter
>
Thanks Mark but I'm on a Linux or Windows box.  But you did start me thinking 
about maybe there is some Linux tool.  I'll check into it.  Maybe Shark can 
run on Linux.  But still I wonder what tool could see into the code and 
measure a routine.   
John
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to