Profiler

# JDE Profiler

The JDE profiler helps you analyze the performance of your program. Use the profiler to determine:

- How much time is spent in each of the program's methods (and optionally, in the methods that they in turn call)
- How many times each of the methods is executed

To collect profile data:

- Run your project using one of the following methods:
  - Choose Project -> Profile from the main menubar.
  - Click on the main toolbar.
  At the end of execution, profile data is written to the file project-name`.prof` in the project source directory (defined when you created the project).

  The profile data file project-name`.prof` is overwritten each time you run the program. To save the data from a given run, rename it before you run the program again.

To view profile data:

- After the project run terminates, the Profile Display window automatically opens with the profile data from that run.

  You can manually start the profiler by choosing Windows -> Profile Results from the main JDE menubar. Then choose File -> Open in the Profile Display window to load profile data for a particular project into the display.

  The top pane of the profiler window lists the names of all the methods (except those filtered out) in your program that were executed. When you select a method in any of the three panes, the names of methods that they in turn call and are called by are displayed in the bottom two panes. Information about those methods is displayed both graphically (as a bar graph) and numerically.

  You can view three types of data about methods:

  Self Times | The time (in milliseconds) spent in the body of the displayed method (does not include the time spent in methods called by this method)
  Cumulative Times | The time (in milliseconds) spent in the displayed method, in all methods called by the displayed method, in all methods called by those methods, and so on
  Call Counts | The number of times the method was called by any other methods

To change data type:

- Use the items in the Data menu to change the display data type.

To change the data view:

- Use the menu items in the View menu to control how data is displayed in the profiler window.

See also:

  Profiler Menus