Re: benchmarking IDL code. [message #26378] |
Tue, 04 September 2001 04:57  |
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
|
|
|
|