The PROFILER procedure allows you to access the IDL Code Profiler. The IDL Code Profiler helps you analyze the performance of your applications. You can easily monitor the calling frequency and execution time for procedures and functions.
Set this keyword to disable profiling of Module or of all compiled modules if Module is not specified.
Set this keyword to a specified variable in which to store the results of the REPORT keyword.
PROFILER, /SYSTEM ; Include IDL system procedures and functions when profiling.
A= DIST(500) ; Create a dataset using the library function DIST. Note that DIST is immediately compiled.
PROFILER, /REPORT ; Retrieve the profiling results.
Module Type Count Only(s) Avg.(s) Time(s) Avg.(s)
FINDGEN (S) 1 0.000239 0.000239 0.000239 0.000239
FLTARR (S) 1 0.010171 0.010171 0.010171 0.010171
N_ELEMENTS (S) 1 0.000104 0.000104 0.000104 0.000104
ON_ERROR (S) 1 0.000178 0.000178 0.000178 0.000178
"Debugging in IDL", Programming Tools .