## JProfiler as a JDeveloper Addin |
previous | up | next

| With JProfiler integrated into Oracle's JDeveloper JProfiler can be invoked from within the IDE without any further need for session configuration. Requirements: JProfiler requires at least JDeveloper 10g.

| The installation of the JDeveloper addin is started by selecting "JDeveloper 10g" on the IDE integration tab of JProfiler's setup wizard miscellaneous options tab of JProfiler's general settings (use Session->IDE integrations in JProfiler's main menu as a shortcut). and clicking on [Integrate] Reminder: Please close JDeveloper while performing the addin installation. If you are performing the installation from JProfiler's setup wizard, please complete the entire setup first before starting JDeveloper. A file selection box will then prompt you to locate the installation directory of JDeveloper. After acknowledging the completion message, you can start JDeveloper and check whether the installation was successful. You should now see a menu entry Run->Profile with JProfiler in JDeveloper's main menu.

| To profile your application from JDeveloper, choose one of the profiling commands in the Run menu or click on the corresponding toolbar button. Main toolbar with "JProfiler" button "Run" menu with "JProfiler" actions Project explorer context menu with "JProfiler" action The profiled application is then started just as with the usual "Run" commands. If no instance of JProfiler is currently running, JProfiler is also started, otherwise the running instance of JProfiler will be used for presenting profiling data. Every time a run configuration is profiled, a dialog box is brought up that asks you whether a new window should be opened in JProfiler. To get rid of this dialog, you can select the "Don't ask me again" checkbox. The window policy can subsequently be configured in the "JProfiler" node in the settings dialog of JDeveloper (see below). All profiling settings and view settings changes are persistent across session restarts. When JProfiler is started from JDeveloper, the "Show source" action for a class or a method in one of JProfiler's view will show the source element in JDeveloper and not in JProfiler's integrated source code viewer.

| Several JProfiler-related settings can be adjusted in JDeveloper under Tools->Preferences->JProfiler: The used JProfiler installation can be changed by repeating the integration from JProfiler or by adjusting the JProfiler executable in the corresponding text field. When you upgrade to a newer version of JProfiler, make sure to repeat the integration, since the addin has to be updated, too. The window policy can be configured as Ask each time Every time you profile a run configuration, a dialog box will ask you whether a new window should be opened in JProfiler. This is the default setting. Always new window Every time you profile a run configuration, a new window will be opened in JProfiler. Reuse last window Every time you profile a run configuration, the last window will be reused in JProfiler.