The IDL Workbench > Profiler View

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.

Note: If the tab for the Profiler View is not visible, simply choose WINDOW > Profiler. It is also available by choosing WINDOW > Show View > Other from the main IDL-DE menu bar across the top of the screen. A popup will appear allowing you to choose "Profiler View."

 

Running the Profiler from the Workbench

To use the Profiler from the Workbench, follow the steps below:

  1. Make sure that all of your code is compiled, either by running your application once, or by using the Compile button.
  2. Click on the "Profiler" tab.
  3. Click the "Enable Profiler" button (see screenshot, above).
  4. Once the Profiler is enabled, run your code, either by selecting "Run" if your program is open in the Editor, or by typing the commands in the IDL Console.
  5. When the program completes, go back to the Profiler tab and click the same button as the one used to enable the profiler. This will stop the profiler.

After the profiler stops, you will see the results appear in the Profiler (see below). The profiler displays the values for different times taken during each of the routines and statements used in the IDL code you are testing.

Running the Profiler from the IDL Console

You can also run the profiler using the TIC and TOC commands. The results will automatically appear in the Profiler view. Follow these steps:

  1. Make sure that all of your code is compiled, either by running your application once, or by using the Compile button.
  2. Execute the following code in the IDL Console:
    IDL> TIC, /PROFILER
    IDL> MY_APPLICATION
    IDL> TOC
  3. The Profiler View will automatically be populated with the results. Click on the "Profiler" tab to see the results.

Note: Clicking on a header name will sort the results.

The Profiler View

The Profiler View contains nine columns:

Tip: Clicking on one of the column headers will sort the results based upon that column. Clicking again will sort in the reverse order.

Code Coverage

The Profiler View is integrated with the Editor. If you double click on an IDL .pro routine, the Editor will be opened to that routine. If code coverage is not already displayed, you can turn on "Show Code Coverage" using either the button on the Profiler View's toolbar or the Run->Show Code Coverage menu item.

See Code Coverage for details.

See Also

Class Hierarchy, Code Coverage, Command History, Console View, PROFILER, Preferences, Editor View, Menubar and Toolbar, Outline View, Problems View, Project Explorer, Workbench Overview, Variables View