Profiler View

The Profiler view helps you analyze the performance of your applications. You can easily monitor the calling frequency and execution time for procedures and functions. The Profiler view can be used with both command line and compiled programs.

profiler_view_window.gif

To add the Profiler view to the current perspective, click Window  Show View  Profiler.

To analyze a program:

  1. Compile the program.
  2. Note
    All program modules must be compiled prior to profiling.

    For more involved programs, you can use RESOLVE_ALL to compile all uncompiled functions or procedures that are called in any already-compiled procedure or function.

  3. Click Enable Profiling on the Profiler view toolbar.
  4. Run the program.
  5. The Profiler report remains blank.

  6. Click Refresh Results to populate the report.

Report Columns

Column
Description

Routine

Routine name. System routines are in italics.

Hit Count

Number of times the routine has been called.

Time self

Total time for the routine itself, not including subroutines.

Time/hit

Time per hit for the routine itself.

Time+sub

Total time for the routine plus subroutines.

Time/hit (2nd)

Time per hit for the routine plus subroutines.

You can sort the report by column, in ascending or descending order, by clicking a column heading. The current sort column is marked by an up or down arrow in the header.

Table cells may also contain a value histogram. The Profiler does not show histograms for small values (relative to the largest column value).

Toolbar

The toolbar of the Profiler view contains the following buttons:

profiler_view_buttons.jpg

Toolbar Button
Description

Filter

Allows you to enter a string to filter the report by routine name. All routine names that contain the filter string are included in the report.

Enable Profiling

Gathers data for a Profiler report during program execution. The results are not displayed until Refresh Results is clicked.

Refresh Results

Updates the report display.

Clear Results

Clears the Profiler report.

Menu

Provides menu items that allow you to:

  • Enable/disable profiling
  • Refresh or clear the report
  • Set the report time unit to seconds or milliseconds
  • Copy the report to the OS clipboard
  • Print the report
  • Save the report as a text file

Minimize

Minimizes the view in the perspective.

Maximize

Maximizes the view in the perspective.