You can use the Edit Profiling Set dialog box to select and configure the probes you want to use with a profiling set. The probes will be applied each time you select the profiling set and launch your application in the workbench.
To use probes with a profiling set:
- Open the Edit Profiling Set dialog box. To do this, from the main workbench menu in the Profiling and Logging perspective, select
.
In the Profile dialog box, select or create a configuration, then select
the Profiling page. In the Overview page,
select a profiling set and type and click Edit....
- In the profiling types tree, expand Probes, then select Probe Insertion. The Probekit Registry is displayed, showing the list of available probes.
- Select the check boxes next to the probes you want to apply each time you select the profiling set and launch your application in the workbench.
- You can select filter sets for probes that are not pre-filtered. To configure filters for a probe, select it in the list of probes, then click the Filters tab. If you do not specify a filter set for the probe, the probe will use the filters that were specified for the profiling set.
Note: profiling set filters that you specify on the second page of the Edit Profiling Set dialog box (the page that appears when you click the Next> button) will only be applied to any non-pre-filtered probes that you select, and to other profiling types that you select. Profiling set filters are ignored for pre-filtered probes.
- When you are finished selecting and configuring probes, click Finish. The names of the probes you selected are displayed in the profiling set contents list.
Note: Data collection limits that you specify on the Limits page of the Profiling dialog box do not apply to probes.
- To launch and profile your application, click Profile. Your application launches, and profiling begins. The probes you selected are applied according to their filter rules.
Note: When you use the Attach - Java process launch configuration, the probes will only be applied to classes that load after you attach to the Java™ process. If a class is loaded before you attach, the probes will not be applied to the class.