comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: benchmarking IDL code.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: benchmarking IDL code. [message #26378] Tue, 04 September 2001 04:57 Go to next message
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
Randall Skelton wrote:

> I am trying to determine how much time, memory, cpu, diskio is being spent
> in each IDL function/procedure I call to determine where I should be
> looking to optimize a few algorithms. It would also be nice to get a
> breakdown of which internal IDL routines are taking the most time but I
> suspect this isn't possible...

The PROFILER at least gives information about the time spent in
routines:

IDL> profiler, /system
IDL> for i = 0, 9 do $
IDL> foo = smooth( rebin( randomu( seed, 100, 100 ), 200, 200 ), 5 )
IDL> profiler, /report
Module Type Count Only(s) Avg.(s) Time(s) Avg.(s)
RANDOMU (S) 10 0.055057 0.005506 0.055057 0.005506
REBIN (S) 10 0.032079 0.003208 0.032079 0.003208
SMOOTH (S) 10 0.036360 0.003636 0.036360 0.003636

Alex
--
Alex Schuster Wonko@planet-interkom.de
alex@pet.mpin-koeln.mpg.de
Re: benchmarking IDL code. [message #26522 is a reply to message #26378] Tue, 04 September 2001 12:18 Go to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
Alex Schuster <Wonko@planet-interkom.de> wrote:
> The PROFILER at least gives information about the time spent in
> routines:

Wow. Thats useful. I never knew... thanks.

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.nerc-bas.ac.uk/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: User functions and data name conflicts
Next Topic: benchmarking IDL code.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:16:04 PDT 2025

Total time taken to generate the page: 0.00602 seconds