Profiling Your Code

Even if your code executes correctly, you may be interested in optimizing it so it runs more quickly or efficiently. Determining where your code spends its time is known as profiling. IDL provides a code profiler that allows you to monitor the calling frequency and execution time for procedures and functions.

In the IDL Workbench, profiling results are reported in the Profiler view. See Profiler View for information on using the IDL code profiler within the Workbench. If you prefer, or if you are not using the IDL Workbench, you can use the PROFILER routine instead.